aboutsummaryrefslogtreecommitdiff
path: root/advice.c
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2016-09-27 10:32:49 +0200
committerJunio C Hamano <gitster@pobox.com>2016-09-27 10:59:28 -0700
commit8779351dd7ee54c6ef2a7007670bad75a86edc75 (patch)
tree2810d463c6e0baef7f93889678334720156b797c /advice.c
parent7c0304af62fcb777faac6eebd8c242d3de4f605d (diff)
downloadgit-8779351dd7ee54c6ef2a7007670bad75a86edc75.tar.gz
git-8779351dd7ee54c6ef2a7007670bad75a86edc75.tar.xz
revision: new rev^-n shorthand for rev^n..rev
"git log rev^..rev" is commonly used to show all work done on and merged from a side branch. This patch introduces a shorthand "rev^-" for this and additionally allows "rev^-$n" to mean "reachable from rev, excluding what is reachable from the nth parent of rev". For example, for a two-parent merge, you can use rev^-2 to get the set of commits which were made to the main branch while the topic branch was prepared. Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.c')
0 files changed, 0 insertions, 0 deletions