summaryrefslogtreecommitdiff
path: root/builtin-revert.c
diff options
context:
space:
mode:
authorLibravatar Steven Drake <sdrake@xnet.co.nz>2010-01-12 11:34:34 +1300
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-11 19:47:52 -0800
commit91dc602de9579fe8dc29814819904e2b5a4e92e1 (patch)
tree2e337a7162a9fa0be04189951eb5a55d752b190e /builtin-revert.c
parentAdd 'git rev-parse --show-toplevel' option. (diff)
downloadtgif-91dc602de9579fe8dc29814819904e2b5a4e92e1.tar.xz
Use $(git rev-parse --show-toplevel) in cd_to_toplevel().
rev-parse --show-toplevel gives the absolute (aka "physical") path of the toplevel directory and is more portable as 'cd -P' is not supported by all shell implementations. This is also closer to what setup_work_tree() does. Signed-off-by: Steven Drake <sdrake@xnet.co.nz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-revert.c')
0 files changed, 0 insertions, 0 deletions