Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Rappazzo <rappazzo@gmail.com>2015-10-08 20:01:04 +0300
committerJunio C Hamano <gitster@pobox.com>2015-10-08 21:57:07 +0300
commit92718b7438799f4654304e2fa3b5b7e5a9fda882 (patch)
treebe65427222e07b4237ac42273dd98177eed0a53d /worktree.h
parent51934904425e55a190b05f0a7a3de40ea486f0e5 (diff)
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>
Diffstat (limited to 'worktree.h')
-rw-r--r--worktree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h
index 7022029db5..b4b3dda792 100644
--- a/worktree.h
+++ b/worktree.h
@@ -4,6 +4,10 @@
struct worktree {
char *path;
char *git_dir;
+ char *head_ref;
+ unsigned char head_sha1[20];
+ int is_detached;
+ int is_bare;
};
/* Functions for acting on the information about worktrees. */