summaryrefslogtreecommitdiff
path: root/check-builtins.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-04-23 20:56:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-04-29 20:17:52 (GMT)
commiteaa4e59c8545f61c6e61559df33dc4792e455d5a (patch)
tree502198d8fb5df6d56f347719b2c98dc68cfd99ed /check-builtins.sh
parent1faac1cedca475a364c72b063c79da08caee0fe9 (diff)
downloadgit-eaa4e59c8545f61c6e61559df33dc4792e455d5a.zip
git-eaa4e59c8545f61c6e61559df33dc4792e455d5a.tar.gz
git-eaa4e59c8545f61c6e61559df33dc4792e455d5a.tar.bz2
merge: do not check argc to determine number of remote heads
To reject merging multiple commits into an unborn branch, we check argc, thinking that collect_parents() that reads the remaining command line arguments from <argc, argv> will give us the same number of commits as its input, i.e. argc. Because what we really care about is the number of commits, let the function run and then make sure it returns only one commit instead. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'check-builtins.sh')
0 files changed, 0 insertions, 0 deletions