summaryrefslogtreecommitdiff
path: root/merge-blobs.h
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2014-07-19 15:01:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-21 19:06:49 (GMT)
commit25a05a8cae263ca55e75d31336d09c8d9bc90be3 (patch)
tree3d84af0f88b7dcb76e62871d597c03c39cd7b28f /merge-blobs.h
parent60e2f5a5af6e605a8de48d2cd1b21c690a84ae75 (diff)
downloadgit-25a05a8cae263ca55e75d31336d09c8d9bc90be3.zip
git-25a05a8cae263ca55e75d31336d09c8d9bc90be3.tar.gz
git-25a05a8cae263ca55e75d31336d09c8d9bc90be3.tar.bz2
replace: check mergetags when using --graft
When using --graft, with a mergetag in the original commit, we should check that the commit pointed to by the mergetag is still a parent of then new commit we create, otherwise the mergetag could be misleading. If the commit pointed to by the mergetag is no more a parent of the new commit, we could remove the mergetag, but in this case there is a good chance that the title or other elements of the commit might also be misleading. So let's just error out and suggest to use --edit instead on the commit. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-blobs.h')
0 files changed, 0 insertions, 0 deletions