Re: [PATCHv3] git-p4: support git worktrees

2016-12-13 Thread Junio C Hamano
Luke Diamand writes: > git-p4 would attempt to find the git directory using > its own specific code, which did not know about git > worktrees. > > Rework it to use "git rev-parse --git-dir" instead. > > Add test cases for worktree usage and specifying > git directory via

[PATCHv3] git-p4: support git worktrees

2016-12-13 Thread Luke Diamand
git-p4 would attempt to find the git directory using its own specific code, which did not know about git worktrees. Rework it to use "git rev-parse --git-dir" instead. Add test cases for worktree usage and specifying git directory via --git-dir and $GIT_DIR. Signed-off-by: Luke Diamand