]> git.ipfire.org Git - thirdparty/git.git/commit
rev-parse: add --shared-index-path to get shared index path
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 13 Jun 2014 12:19:46 +0000 (19:19 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Jun 2014 18:49:41 +0000 (11:49 -0700)
commita76295da784501f74803053606112f62ccff3828
tree5afa51eff09fa537e06151599f01a9e330450eef
parenta0a967568e8de5306d1889583c4dad0ff937f5ef
rev-parse: add --shared-index-path to get shared index path

Normally scripts do not have to be aware about split indexes because
all shared indexes are in $GIT_DIR. A simple "mv $tmp_index
$GIT_DIR/somewhere" is enough. Scripts that generate temporary indexes
and move them across repos must be aware about split index and copy
the shared file as well. This option enables that.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-rev-parse.txt
builtin/rev-parse.c