this page is moved to http://gitbro.sourceforge.net/
So there won't be any update here
I want single file\dir revisions to display in a gui windows
search git in SF, then I got:
Download the git offical tar ball, then have a look at git.c to know how to implement the engine.
git log —follow auth_for_yum/
the gitk source file is more than 10.000 long, in a single file. Tcl is esay, but I hate a file so big.
luckly I mainly care about the sys command after exec, so I just need to search exec
actually what I want to know is how to get the diff files
external_diff_get_one_file
Now I want to have the pactches for out
Then I only need git log --follow out
Do:
peter@cow:~/test-repo$ git diff ff39ed298a367cf971fc647beea6a6d4d8451ba3 2a165290ca21bf75c54c7558ddc51a478d9887b7 >out-1.patch peter@cow:~/test-repo$ git diff 2a165290ca21bf75c54c7558ddc51a478d9887b7 bdaf3c85b000ee721f3f10022bd7af6c9105bde9>out-2.patch peter@cow:~/test-repo$ ls ff out out-1.patch out-2.patch peter@cow:~/test-repo$ vim out-1.patch peter@cow:~/test-repo$ vim out-2.patch peter@cow:~/test-repo$ ls ff out out-1.patch out-2.patch peter@cow:~/test-repo$Now the problem is in the patches we have the diffs for the folder ff/ as well, but this does not matter I can simplely remove then with sed or some python code.
Then I get all the patches for the file named out, that means I have all the revisions as well. Note: we can use diff -u above to get a universaul diff
I want this because I may some times, get a small project(a subdir, github:python/web/), out of a big one(like my github:python/)
I suddenly want this
$cd edocs/ $gitbro-egg yum.muse $cd .. $cd yum.repo #now we get a small repo for the file yum.muse only $gitk
I also want this for dirs, then I can clear see the changes I made to a single file or a dir. I do not need to have my own gui tool
if I can use this, then I can have a very perfect egg gitrepo
git-commit(1) --reuse-message=<commit> Take an existing commit object, and reuse the log message and the authorship information (including the timestamp) when creating the commit.but maybe this means I need to work with in the big repo, maybe I can creat a branch?
if a perfect one is difficult, then I just let the Author and Date be, I just commit with the original message that is enough to fully understand the code.