diff options
author | Michael Rappazzo <rappazzo@gmail.com> | 2015-10-02 07:55:31 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-10-02 13:07:38 -0700 |
commit | ac6c561b598ae74d8e752e22607194536000e4db (patch) | |
tree | 691b1b7c6835177276ffca71cc59263f4c35c133 /worktree.h | |
parent | Git 2.6-rc3 (diff) | |
download | tgif-ac6c561b598ae74d8e752e22607194536000e4db.tar.xz |
worktree: add top-level worktree.c
worktree.c contains functions to work with and get information from
worktrees. This introduction moves functions related to worktrees
from branch.c into worktree.c
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.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/worktree.h b/worktree.h new file mode 100644 index 0000000000..71b14092c4 --- /dev/null +++ b/worktree.h @@ -0,0 +1,12 @@ +#ifndef WORKTREE_H +#define WORKTREE_H + +/* + * Check if a per-worktree symref points to a ref in the main worktree + * or any linked worktree, and return the path to the exising worktree + * if it is. Returns NULL if there is no existing ref. The caller is + * responsible for freeing the returned path. + */ +extern char *find_shared_symref(const char *symref, const char *target); + +#endif |