From: Junio C Hamano <hidden> Date: 2016-06-15 22:43:06
"Marco Costalba" [off-list ref] writes:
From today git:
$ git rev-list --all -- git-gui/git-gui.sh | wc
7 7 287
$ git rev-list --all --full-history -- git-gui/git-gui.sh | wc
9 9 369
So only the merges from git://repo.or.cz/git-gui are shown.
Remember, git does not have concept of "file identity". Path
filtering feature of "git log" family of commands is just that:
filtering by path.
You are asking for commits that have difference in the specified
paths (in your case, "git-gui/git-gui.sh") from their parents.
Shawn's git-gui repository does not have such a path at all. He
has git-gui.sh at the toplevel.
$ git rev-list -- git-gui.sh | wc -l
158
I think Junio was referring to Shawn's git-gui repo:
http://repo.or.cz/w/git-gui.git
...Obviously, if you search for git-gui.sh in the toplevel directory
of git.git repo you won't find anything ;)...
try git rev-list --all --full-history -- git-gui.sh | wc -l, that gives
158 for me (in the git repo) ...
I think Junio was referring to Shawn's git-gui repo:
http://repo.or.cz/w/git-gui.git
...Obviously, if you search for git-gui.sh in the toplevel directory
of git.git repo you won't find anything ;)...
In the git repo, try this:
git show 41bdcda37376a5faa63028f01260890723c3fcfa -- git-gui.sh
;)
--
Julian
---
[during the preview for the new action movie about Jesus]
TV Announcer: This Christmas, let He who is without sin kick the first ass.
try git rev-list --all --full-history -- git-gui.sh | wc -l, that gives
158 for me (in the git repo) ...
Yes, --full-history here is the missed link here, it works also with
just HEAD instead of --all
$ git rev-list HEAD --full-history -- git-gui.sh | wc -l
158
Unfortunatly this is much slower,
$ time git rev-list HEAD --full-history -- git-gui.sh > /dev/null
1.77user 0.03system 0:01.88elapsed 95%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+4030minor)pagefaults 0swaps
$ time git rev-list HEAD -- git-gui.sh > /dev/null
0.80user 0.02system 0:00.91elapsed 91%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+3382minor)pagefaults 0swaps
Marco