summaryrefslogtreecommitdiff
path: root/alloc.c
diff options
context:
space:
mode:
authorSahil Dua <sahildua2305@gmail.com>2017-06-13 10:47:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-13 15:04:16 (GMT)
commitbb8efa1772c5a2ae1ce13ee2482fc8d97011ab7a (patch)
tree1e6af802c35f46b3c7e773b6151fc5564201e604 /alloc.c
parent76339527ccf7946751174663f9faa686f3f55335 (diff)
downloadgit-bb8efa1772c5a2ae1ce13ee2482fc8d97011ab7a.zip
git-bb8efa1772c5a2ae1ce13ee2482fc8d97011ab7a.tar.gz
git-bb8efa1772c5a2ae1ce13ee2482fc8d97011ab7a.tar.bz2
t3200: add test for single parameter passed to -m option
Add a test for the case when only one parameter is passed to '-m' (move/rename) option. For example - if 'git branch -m bbb' is run while checked out on aaa branch, it should rename the currently checked out branch to bbb. There was no test for this particular case with only one parameter for -m option. However, there's one similar test case for -M option. Add test for making sure HEAD points to the bbb (new branch name). Also add a test for making sure the reflog that is moved to 'bbb' retains entries created for the currently checked out branch. Note that since the topmost entry on reflog for bbb will be about branch creation, we compare bbb@{1} (instead of bbb@{0}) with aaa@{0} to make sure the reflog for bbb retains entries from aaa. Signed-off-by: Sahil Dua <sahildua2305@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'alloc.c')
0 files changed, 0 insertions, 0 deletions