* [RFH] How to get git-gui.sh history
@ 2007-04-21 9:04 Marco Costalba
2007-04-21 9:17 ` Junio C Hamano
0 siblings, 1 reply; 7+ messages in thread
From: Marco Costalba @ 2007-04-21 9:04 UTC (permalink / raw
To: Git Mailing List; +Cc: Junio C Hamamo
>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.
Am I missing something? How can I get full history?
Thanks
Marco
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFH] How to get git-gui.sh history
2007-04-21 9:04 [RFH] How to get git-gui.sh history Marco Costalba
@ 2007-04-21 9:17 ` Junio C Hamano
2007-04-21 9:38 ` Marco Costalba
0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-04-21 9:17 UTC (permalink / raw
To: Marco Costalba; +Cc: Git Mailing List
"Marco Costalba" <mcostalba@gmail.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFH] How to get git-gui.sh history
2007-04-21 9:17 ` Junio C Hamano
@ 2007-04-21 9:38 ` Marco Costalba
2007-04-21 14:54 ` Michael
0 siblings, 1 reply; 7+ messages in thread
From: Marco Costalba @ 2007-04-21 9:38 UTC (permalink / raw
To: Junio C Hamano; +Cc: Git Mailing List
On 4/21/07, Junio C Hamano <junkio@cox.net> wrote:
> "Marco Costalba" <mcostalba@gmail.com> writes:
>
> $ git rev-list -- git-gui.sh | wc -l
> 158
>
This is strange....
On my box I have:
$ git --version
git version 1.5.1.1.190.g74474
$ git rev-parse HEAD
744747ef1d75c85fb3a1785cb08d36497128d3d3
$ git status
# On branch master
nothing to commit (working directory clean)
$ git rev-list -- git-gui.sh | wc -l
usage: git-rev-list [OPTION] <commit-id>... [ -- paths... ]
limiting output:
--max-count=nr
--max-age=epoch
--min-age=epoch
--sparse
--no-merges
--remove-empty
--all
--stdin
ordering output:
--topo-order
--date-order
formatting output:
--parents
--objects | --objects-edge
--unpacked
--header | --pretty
--abbrev=nr | --no-abbrev
--abbrev-commit
--left-right
special purpose:
--bisect
--bisect-vars
0
$
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFH] How to get git-gui.sh history
2007-04-21 9:38 ` Marco Costalba
@ 2007-04-21 14:54 ` Michael
2007-04-21 16:05 ` Julian Phillips
0 siblings, 1 reply; 7+ messages in thread
From: Michael @ 2007-04-21 14:54 UTC (permalink / raw
To: Marco Costalba; +Cc: git, Junio C Hamano
Marco Costalba wrote:
> On 4/21/07, Junio C Hamano <junkio@cox.net> wrote:
> > "Marco Costalba" <mcostalba@gmail.com> writes:
> >
> > $ git rev-list -- git-gui.sh | wc -l
> > 158
> >
>
> This is strange....
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 ;)...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFH] How to get git-gui.sh history
2007-04-21 14:54 ` Michael
@ 2007-04-21 16:05 ` Julian Phillips
2007-04-21 17:19 ` Marco Costalba
2007-04-21 20:01 ` Michael
0 siblings, 2 replies; 7+ messages in thread
From: Julian Phillips @ 2007-04-21 16:05 UTC (permalink / raw
To: Michael; +Cc: Marco Costalba, git, Junio C Hamano
On Sat, 21 Apr 2007, Michael wrote:
> Marco Costalba wrote:
>> On 4/21/07, Junio C Hamano <junkio@cox.net> wrote:
>>> "Marco Costalba" <mcostalba@gmail.com> writes:
>>>
>>> $ git rev-list -- git-gui.sh | wc -l
>>> 158
>>>
>>
>> This is strange....
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFH] How to get git-gui.sh history
2007-04-21 16:05 ` Julian Phillips
@ 2007-04-21 17:19 ` Marco Costalba
2007-04-21 20:01 ` Michael
1 sibling, 0 replies; 7+ messages in thread
From: Marco Costalba @ 2007-04-21 17:19 UTC (permalink / raw
To: Julian Phillips; +Cc: Michael, git, Junio C Hamano
On 4/21/07, Julian Phillips <julian@quantumfyre.co.uk> wrote:
> On Sat, 21 Apr 2007, Michael wrote:
>
> > Marco Costalba wrote:
> >> On 4/21/07, Junio C Hamano <junkio@cox.net> wrote:
> >>> "Marco Costalba" <mcostalba@gmail.com> writes:
> >>>
> >>> $ git rev-list -- git-gui.sh | wc -l
> >>> 158
> >>>
> >>
> >> This is strange....
>
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [RFH] How to get git-gui.sh history
2007-04-21 16:05 ` Julian Phillips
2007-04-21 17:19 ` Marco Costalba
@ 2007-04-21 20:01 ` Michael
1 sibling, 0 replies; 7+ messages in thread
From: Michael @ 2007-04-21 20:01 UTC (permalink / raw
To: Julian Phillips; +Cc: Marco Costalba, git, Junio C Hamano
Julian Phillips wrote:
> In the git repo, try this:
>
> git show 41bdcda37376a5faa63028f01260890723c3fcfa -- git-gui.sh
>
> ;)
I forgot that git could search in that history too...
btw:
git grep full-history Documentation/* | wc -l
0
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-04-21 19:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-21 9:04 [RFH] How to get git-gui.sh history Marco Costalba
2007-04-21 9:17 ` Junio C Hamano
2007-04-21 9:38 ` Marco Costalba
2007-04-21 14:54 ` Michael
2007-04-21 16:05 ` Julian Phillips
2007-04-21 17:19 ` Marco Costalba
2007-04-21 20:01 ` Michael
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).