mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
3c87aa946a
Pass the previously added "num_matches" struct value up to the callers of unique_tracking_name(). This will allow callers to optionally print better error messages in a later change. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 lines
376 B
C
15 lines
376 B
C
#ifndef CHECKOUT_H
|
|
#define CHECKOUT_H
|
|
|
|
#include "cache.h"
|
|
|
|
/*
|
|
* Check if the branch name uniquely matches a branch name on a remote
|
|
* tracking branch. Return the name of the remote if such a branch
|
|
* exists, NULL otherwise.
|
|
*/
|
|
extern const char *unique_tracking_name(const char *name,
|
|
struct object_id *oid,
|
|
int *dwim_remotes_matched);
|
|
|
|
#endif /* CHECKOUT_H */
|