Updating git svn info/revision number for git repo (A) cloned from git-svn repo (B)
Okay, I am not asking how to synch the change开发者_如何转开发s back and forth between the two repos (I am able to do that via normal push and pull), but a way to update the git svn info (particularly the revision number) for (A) from (B)
Currently I can do that not-so-elegantly by taking the first line with "git-svn-id:" from the output of git log
, but looking for better ideas that possibly address the root cause that I may not be aware of..
Update:
For the revision number I can obtain that via git log --grep=git-svn-id: -1
and use of filterchains in ant, so my immediate problem is solved.
As for the question itself, based on information from here, it seems that there is no point in doing what I want to do, so I may have to close this question after some time.
精彩评论