diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-08-16 16:52:04 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-28 11:51:54 -0700 |
commit | 08ea65ad13faaf24f57732cdc8af3d830d4b367f (patch) | |
tree | c1143ed482a92214c09223fd32914292e4db1dd7 /commit.h | |
parent | 6a3bbb4db409c5417960ffd3f020f75e0cb36f81 (diff) | |
download | git-08ea65ad13faaf24f57732cdc8af3d830d4b367f.tar.gz |
shallow: add setup_temporary_shallow()
This function is like setup_alternate_shallow() except that it does
not lock $GIT_DIR/shallow. It is supposed to be used when a program
generates temporary shallow for use by another program, then throw
the shallow file away.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r-- | commit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -201,6 +201,7 @@ extern void set_alternate_shallow_file(const char *path); extern int write_shallow_commits(struct strbuf *out, int use_pack_protocol); extern void setup_alternate_shallow(struct lock_file *shallow_lock, const char **alternate_shallow_file); +extern char *setup_temporary_shallow(void); int is_descendant_of(struct commit *, struct commit_list *); int in_merge_bases(struct commit *, struct commit *); |