git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
@ 2007-08-26 15:40 Jari Aalto
  2007-08-27  8:02 ` Lukas Sandström
  0 siblings, 1 reply; 7+ messages in thread
From: Jari Aalto @ 2007-08-26 15:40 UTC (permalink / raw)
  To: git

Signed-off-by: Jari Aalto <jari.aalto@cante.net>
---
 Documentation/git-log.txt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 49bb539..aa42f0e 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -76,7 +76,8 @@ git log -r --name-status release..test::
 
 	Show the commits that are in the "test" branch but not yet
 	in the "release" branch, along with the list of paths
-	each commit modifies.
+	each commit modifies. Opton -r (see gitlink:git-rev-list[1])
+        descends recursively.
 
 Discussion
 ----------
-- 
1.5.3.rc5

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
  2007-08-26 15:40 [PATCH] In Examples, explain option -r and refer to git-rev-list[1] Jari Aalto
@ 2007-08-27  8:02 ` Lukas Sandström
  2007-08-27  8:14   ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Lukas Sandström @ 2007-08-27  8:02 UTC (permalink / raw)
  To: Git Mailing List

Jari Aalto wrote:
> Signed-off-by: Jari Aalto <jari.aalto@cante.net>
> ---
>  Documentation/git-log.txt |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
> index 49bb539..aa42f0e 100644
> --- a/Documentation/git-log.txt
> +++ b/Documentation/git-log.txt
> @@ -76,7 +76,8 @@ git log -r --name-status release..test::
>  
>  	Show the commits that are in the "test" branch but not yet
>  	in the "release" branch, along with the list of paths
> -	each commit modifies.
> +	each commit modifies. Opton -r (see gitlink:git-rev-list[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spelling mistake (option)

/Lukas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
  2007-08-27  8:02 ` Lukas Sandström
@ 2007-08-27  8:14   ` Junio C Hamano
  2007-08-27  8:33     ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-08-27  8:14 UTC (permalink / raw)
  To: Lukas Sandström; +Cc: Git Mailing List

Lukas Sandström <lukass@etek.chalmers.se> writes:

> Jari Aalto wrote:
>> Signed-off-by: Jari Aalto <jari.aalto@cante.net>
>> ---
>>  Documentation/git-log.txt |    3 ++-
>>  1 files changed, 2 insertions(+), 1 deletions(-)
>> 
>> diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
>> index 49bb539..aa42f0e 100644
>> --- a/Documentation/git-log.txt
>> +++ b/Documentation/git-log.txt
>> @@ -76,7 +76,8 @@ git log -r --name-status release..test::
>>  
>>  	Show the commits that are in the "test" branch but not yet
>>  	in the "release" branch, along with the list of paths
>> -	each commit modifies.
>> +	each commit modifies. Opton -r (see gitlink:git-rev-list[1])
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spelling mistake (option)

I think it makes more sense to make Porcelain including "git
log" to always recurse in its diff operations (when diff output
is asked for), in which case the example should simply lose
the "-r" option.

But that is a post-1.5.3 change.  That's why I am planning to
drop this patch for now.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
  2007-08-27  8:14   ` Junio C Hamano
@ 2007-08-27  8:33     ` Junio C Hamano
  2007-08-27  8:44       ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-08-27  8:33 UTC (permalink / raw)
  To: Jari Aalto; +Cc: Git Mailing List, Lukas Sandström

Junio C Hamano <gitster@pobox.com> writes:

> Lukas Sandström <lukass@etek.chalmers.se> writes:
>
>> Jari Aalto wrote:
>>> Signed-off-by: Jari Aalto <jari.aalto@cante.net>
>>> ---
>>>  Documentation/git-log.txt |    3 ++-
>>>  1 files changed, 2 insertions(+), 1 deletions(-)
>>> 
>>> diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
>>> index 49bb539..aa42f0e 100644
>>> --- a/Documentation/git-log.txt
>>> +++ b/Documentation/git-log.txt
>>> @@ -76,7 +76,8 @@ git log -r --name-status release..test::
>>>  
>>>  	Show the commits that are in the "test" branch but not yet
>>>  	in the "release" branch, along with the list of paths
>>> -	each commit modifies.
>>> +	each commit modifies. Opton -r (see gitlink:git-rev-list[1])
>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ spelling mistake (option)
>
> I think it makes more sense to make Porcelain including "git
> log" to always recurse in its diff operations (when diff output
> is asked for), in which case the example should simply lose
> the "-r" option.
>
> But that is a post-1.5.3 change.  That's why I am planning to
> drop this patch for now.

The change would probably look something like this.  Testing is
left as an exercise to the readers ;-).

---

 Documentation/git-log.txt     |    2 +-
 Documentation/user-manual.txt |    2 +-
 builtin-log.c                 |    1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 1e6dbd9..5ec547c 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -96,7 +96,7 @@ git log --since="2 weeks ago" \-- gitk::
 	The "--" is necessary to avoid confusion with the *branch* named
 	'gitk'
 
-git log -r --name-status release..test::
+git log --name-status release..test::
 
 	Show the commits that are in the "test" branch but not yet
 	in the "release" branch, along with the list of paths
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 06ab79f..35298e6 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -921,7 +921,7 @@ file such that it contained the given content either before or after the
 commit.  You can find out with this:
 
 -------------------------------------------------
-$  git log --raw -r --abbrev=40 --pretty=oneline -- filename |
+$  git log --raw --abbrev=40 --pretty=oneline -- filename |
 	grep -B 1 `git hash-object filename`
 -------------------------------------------------
 
diff --git a/builtin-log.c b/builtin-log.c
index 13bae31..d6cf9d5 100644
--- a/builtin-log.c
+++ b/builtin-log.c
@@ -258,6 +258,7 @@ int cmd_log(int argc, const char **argv, const char *prefix)
 	git_config(git_log_config);
 	init_revisions(&rev, prefix);
 	rev.always_show_header = 1;
+	rev.diffopt.recursive = 1;
 	cmd_log_init(argc, argv, prefix, &rev);
 	return cmd_log_walk(&rev);
 }

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
  2007-08-27  8:33     ` Junio C Hamano
@ 2007-08-27  8:44       ` Jeff King
  2007-08-27  9:55         ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff King @ 2007-08-27  8:44 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jari Aalto, Git Mailing List, Lukas Sandström

On Mon, Aug 27, 2007 at 01:33:49AM -0700, Junio C Hamano wrote:

> --- a/builtin-log.c
> +++ b/builtin-log.c
> @@ -258,6 +258,7 @@ int cmd_log(int argc, const char **argv, const char *prefix)
>  	git_config(git_log_config);
>  	init_revisions(&rev, prefix);
>  	rev.always_show_header = 1;
> +	rev.diffopt.recursive = 1;
>  	cmd_log_init(argc, argv, prefix, &rev);
>  	return cmd_log_walk(&rev);
>  }

This should perhaps rather go in cmd_log_init (and be removed from
cmd_show and cmd_whatchanged). I think this is semantically a little
more clear, and the change will affect other log porcelains (right now
just "git-reflog --name-status", but also new ones if they are added).

But yes, this is post-1.5.3, so I will shut up rather than nitpicking
your "not meant to be applied now" patches.

-Peff

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
  2007-08-27  8:44       ` Jeff King
@ 2007-08-27  9:55         ` Junio C Hamano
  2007-08-27 10:02           ` Jeff King
  0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-08-27  9:55 UTC (permalink / raw)
  To: Jeff King; +Cc: Jari Aalto, Git Mailing List, Lukas Sandström

Jeff King <peff@peff.net> writes:

> On Mon, Aug 27, 2007 at 01:33:49AM -0700, Junio C Hamano wrote:
>
>> --- a/builtin-log.c
>> +++ b/builtin-log.c
>> @@ -258,6 +258,7 @@ int cmd_log(int argc, const char **argv, const char *prefix)
>>  	git_config(git_log_config);
>>  	init_revisions(&rev, prefix);
>>  	rev.always_show_header = 1;
>> +	rev.diffopt.recursive = 1;
>>  	cmd_log_init(argc, argv, prefix, &rev);
>>  	return cmd_log_walk(&rev);
>>  }
>
> This should perhaps rather go in cmd_log_init (and be removed from
> cmd_show and cmd_whatchanged). I think this is semantically a little
> more clear, and the change will affect other log porcelains (right now
> just "git-reflog --name-status", but also new ones if they are added).
>
> But yes, this is post-1.5.3, so I will shut up rather than nitpicking
> your "not meant to be applied now" patches.

Thanks for your comments; rather than shutting up, could you
send an improvement after 1.5.3 happens?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] In Examples, explain option -r and refer to git-rev-list[1]
  2007-08-27  9:55         ` Junio C Hamano
@ 2007-08-27 10:02           ` Jeff King
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff King @ 2007-08-27 10:02 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Jari Aalto, Git Mailing List, Lukas Sandström

On Mon, Aug 27, 2007 at 02:55:07AM -0700, Junio C Hamano wrote:

> > But yes, this is post-1.5.3, so I will shut up rather than nitpicking
> > your "not meant to be applied now" patches.
> 
> Thanks for your comments; rather than shutting up, could you
> send an improvement after 1.5.3 happens?

Will do.

-Peff

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-08-27 10:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-26 15:40 [PATCH] In Examples, explain option -r and refer to git-rev-list[1] Jari Aalto
2007-08-27  8:02 ` Lukas Sandström
2007-08-27  8:14   ` Junio C Hamano
2007-08-27  8:33     ` Junio C Hamano
2007-08-27  8:44       ` Jeff King
2007-08-27  9:55         ` Junio C Hamano
2007-08-27 10:02           ` Jeff King

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).