diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-20 02:50:21 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-20 15:10:47 -0800 |
commit | 60da8b15c1b77706e0701cccef2d534a1c3825ad (patch) | |
tree | c4fe4d8250d77745856e7f421d68bc96ac322f47 /Documentation/rev-list-options.txt | |
parent | 5486ef0e6d159a8971742fd2464b9656f5457fda (diff) | |
download | git-60da8b15c1b77706e0701cccef2d534a1c3825ad.tar.gz |
Make --stdin option to "log" family read also pathspecs
Similar to the command line arguments, after giving zero or more revs, you can
feed a line "--" and then feed pathspecs one at a time.
With this
(
echo ^maint
echo --
echo Documentation
) | git log --stat --oneline --stdin master -- t
lists commits that touch Documentation/ or t/ between maint and master.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/rev-list-options.txt')
-rw-r--r-- | Documentation/rev-list-options.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/rev-list-options.txt b/Documentation/rev-list-options.txt index 88ad405111..b44fdd9f01 100644 --- a/Documentation/rev-list-options.txt +++ b/Documentation/rev-list-options.txt @@ -246,7 +246,9 @@ endif::git-rev-list[] --stdin:: In addition to the '<commit>' listed on the command - line, read them from the standard input. + line, read them from the standard input. If a '--' separator is + seen, stop reading commits and start reading paths to limit the + result. ifdef::git-rev-list[] --quiet:: |