diff options
| author | Michael J Gruber <git@drmicha.warpmail.net> | 2011-02-21 17:09:11 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2011-02-21 16:30:58 -0800 |
| commit | 60adf7d73e44126289a98dada60f9c335ffc84b0 (patch) | |
| tree | 328a93806f5dc97b628c6f2fb673dea2b41e34f4 /builtin/commit.c | |
| parent | Git 1.7.4 (diff) | |
| download | git-60adf7d73e44126289a98dada60f9c335ffc84b0.tar.gz git-60adf7d73e44126289a98dada60f9c335ffc84b0.zip | |
revlist.c: introduce --left/right-only for unsymmetric picking
The existing "--cherry-pick" does not work with unsymmetric ranges
(A..B) for obvious reasons.
Introduce "--left-only" and "--right-only" which limit the output to
commits on the respective sides of a symmetric range (i.e. only "<"
resp. ">" commits as per "--left-right").
This is especially useful for things like
git log --cherry-pick --right-only @{u}...
which is much more flexible (and descriptive) than
git cherry @{u} | sed -ne 's/^+ //p'
and potentially more useful than
git log --cherry-pick @{u}...
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
