blob: 1917f3b32300abf113bf3128450da26eb2efd9b4 [file] [log] [blame]
Thomas Gummerer7c85a872017-11-26 19:43:51 +00001#ifndef CHECKOUT_H
2#define CHECKOUT_H
3
Elijah Newrenba3d1c72023-02-24 00:09:22 +00004#include "hash.h"
Thomas Gummerer7c85a872017-11-26 19:43:51 +00005
6/*
7 * Check if the branch name uniquely matches a branch name on a remote
8 * tracking branch. Return the name of the remote if such a branch
9 * exists, NULL otherwise.
10 */
Denton Liu55454422019-04-29 04:28:14 -040011const char *unique_tracking_name(const char *name,
Denton Liuad6dad02019-04-29 04:28:23 -040012 struct object_id *oid,
13 int *dwim_remotes_matched);
Thomas Gummerer7c85a872017-11-26 19:43:51 +000014
15#endif /* CHECKOUT_H */