worktree.c: store "id" instead of "git_dir"
commit69dfe3b9420eb2a7f479a0a4cad663111af2b1f9
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 22 Apr 2016 13:01:26 +0000 (22 20:01 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Apr 2016 21:09:37 +0000 (22 14:09 -0700)
tree7e179e067824fa9e04d784c6f3b8a50eb9ce2bb5
parent15cdfea734ffce99d930e8e8016787b57ac47386
worktree.c: store "id" instead of "git_dir"

We can reconstruct git_dir from id quite easily. It's a bit hackier to
do the reverse.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
branch.c
worktree.c
worktree.h