Merge branch 'tc/clone-single-revision'
"git clone" learned to make a shallow clone for a single commit that is not necessarily be at the tip of any branch. * tc/clone-single-revision: builtin/clone: teach git-clone(1) the --revision= option parse-options: introduce die_for_incompatible_opt2() clone: introduce struct clone_opts in builtin/clone.c clone: add tags refspec earlier to fetch refspec clone: refactor wanted_peer_refs() clone: make it possible to specify --tags clone: cut down on global variables in clone.c
This commit is contained in:
5
remote.h
5
remote.h
@ -221,6 +221,11 @@ struct ref *alloc_ref(const char *name);
|
||||
struct ref *copy_ref(const struct ref *ref);
|
||||
struct ref *copy_ref_list(const struct ref *ref);
|
||||
int count_refspec_match(const char *, struct ref *refs, struct ref **matched_ref);
|
||||
/*
|
||||
* Put a ref in the tail and prepare tail for adding another one.
|
||||
* *tail is the pointer to the tail of the list of refs.
|
||||
*/
|
||||
void tail_link_ref(struct ref *ref, struct ref ***tail);
|
||||
|
||||
int check_ref_type(const struct ref *ref, int flags);
|
||||
|
||||
|
Reference in New Issue
Block a user