]> git.ipfire.org Git - thirdparty/git.git/commit - worktree.h
worktree: add details to the worktree struct
authorMichael Rappazzo <rappazzo@gmail.com>
Thu, 8 Oct 2015 17:01:04 +0000 (13:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Oct 2015 18:57:07 +0000 (11:57 -0700)
commit92718b7438799f4654304e2fa3b5b7e5a9fda882
treebe65427222e07b4237ac42273dd98177eed0a53d
parent51934904425e55a190b05f0a7a3de40ea486f0e5
worktree: add details to the worktree struct

In addition to the absolute path in the worktree struct, add the location
of the git dir, the head ref (if not detached), the head revision sha1,
whether or not head is detached, and whether or not the worktree is a
bare repo.

Signed-off-by: Michael Rappazzo <rappazzo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
worktree.c
worktree.h