* git-rev-list diff options broken
@ 2007-11-06 22:14 Han-Wen Nienhuys
2007-11-06 22:15 ` Han-Wen Nienhuys
2007-11-06 23:33 ` Johannes Schindelin
0 siblings, 2 replies; 5+ messages in thread
From: Han-Wen Nienhuys @ 2007-11-06 22:14 UTC (permalink / raw)
To: git
Hi,
the git-rev-list manpage says
**
Diff Formatting
~~~~~~~~~~~~~~~
Below are listed options that control the formatting of diff output.
Some of them are specific to gitlink:git-rev-list[1], however other diff
options may be given. See gitlink:git-diff-files[1] for more options.
**
however, the source code says
if ((!list &&
(!(revs.tag_objects||revs.tree_objects||revs.blob_objects) &&
!revs.pending.nr)) ||
revs.diff)
usage(rev_list_usage);
so any attempt at showing diffs with git-rev-list will fail. What's
the deal with this?
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-rev-list diff options broken
2007-11-06 22:14 git-rev-list diff options broken Han-Wen Nienhuys
@ 2007-11-06 22:15 ` Han-Wen Nienhuys
2007-11-06 23:33 ` Johannes Schindelin
1 sibling, 0 replies; 5+ messages in thread
From: Han-Wen Nienhuys @ 2007-11-06 22:15 UTC (permalink / raw)
To: git
2007/11/6, Han-Wen Nienhuys <hanwenn@gmail.com>:
> so any attempt at showing diffs with git-rev-list will fail. What's
> the deal with this?
this is with
git version 1.5.3.5.576.gfe6193
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-rev-list diff options broken
2007-11-06 22:14 git-rev-list diff options broken Han-Wen Nienhuys
2007-11-06 22:15 ` Han-Wen Nienhuys
@ 2007-11-06 23:33 ` Johannes Schindelin
2007-11-06 23:38 ` Han-Wen Nienhuys
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2007-11-06 23:33 UTC (permalink / raw)
To: hanwen; +Cc: git
Hi,
On Tue, 6 Nov 2007, Han-Wen Nienhuys wrote:
> the git-rev-list manpage says
>
>
> **
> Diff Formatting
> ~~~~~~~~~~~~~~~
>
> Below are listed options that control the formatting of diff output.
> Some of them are specific to gitlink:git-rev-list[1], however other diff
> options may be given. See gitlink:git-diff-files[1] for more options.
> **
>
> however, the source code says
>
>
> if ((!list &&
> (!(revs.tag_objects||revs.tree_objects||revs.blob_objects) &&
> !revs.pending.nr)) ||
> revs.diff)
> usage(rev_list_usage);
>
> so any attempt at showing diffs with git-rev-list will fail. What's
> the deal with this?
Probably you want to use "git log".
"git blame -L 585,589 builtin-rev-list.c" indicates that 8c1f0b44(Fix up
rev-list option parsing) was responsible, which in turn indicates that it
was intentional.
Hth,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-rev-list diff options broken
2007-11-06 23:33 ` Johannes Schindelin
@ 2007-11-06 23:38 ` Han-Wen Nienhuys
2007-11-06 23:55 ` Johannes Schindelin
0 siblings, 1 reply; 5+ messages in thread
From: Han-Wen Nienhuys @ 2007-11-06 23:38 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
2007/11/6, Johannes Schindelin <Johannes.Schindelin@gmx.de>:
>
> Probably you want to use "git log".
>
> "git blame -L 585,589 builtin-rev-list.c" indicates that 8c1f0b44(Fix up
> rev-list option parsing) was responsible, which in turn indicates that it
> was intentional.
OK. So the man page needs fixing, right?
--
Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: git-rev-list diff options broken
2007-11-06 23:38 ` Han-Wen Nienhuys
@ 2007-11-06 23:55 ` Johannes Schindelin
0 siblings, 0 replies; 5+ messages in thread
From: Johannes Schindelin @ 2007-11-06 23:55 UTC (permalink / raw)
To: hanwen; +Cc: git
Hi,
On Tue, 6 Nov 2007, Han-Wen Nienhuys wrote:
> 2007/11/6, Johannes Schindelin <Johannes.Schindelin@gmx.de>:
>
> > Probably you want to use "git log".
> >
> > "git blame -L 585,589 builtin-rev-list.c" indicates that 8c1f0b44(Fix
> > up rev-list option parsing) was responsible, which in turn indicates
> > that it was intentional.
>
> OK. So the man page needs fixing, right?
I guess. Although it seems a bit involved, since the diff-formats.txt are
not included by git-rev-list.txt itself, but by pretty-formats.txt.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-06 23:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-06 22:14 git-rev-list diff options broken Han-Wen Nienhuys
2007-11-06 22:15 ` Han-Wen Nienhuys
2007-11-06 23:33 ` Johannes Schindelin
2007-11-06 23:38 ` Han-Wen Nienhuys
2007-11-06 23:55 ` Johannes Schindelin
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 NNTP newsgroup(s).