mirror of
https://github.com/git/git.git
synced 2024-12-18 14:24:11 +08:00
ba3d1c73da
We had several header files include cache.h unnecessarily. Remove those. These have all been verified via both ensuring that gcc -E $HEADER | grep '"cache.h"' found no hits and that cat >temp.c <<EOF && #include "git-compat-util.h" #include "$HEADER" int main() {} EOF gcc -c temp.c successfully compiles without warnings. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 lines
368 B
C
16 lines
368 B
C
#ifndef CHECKOUT_H
|
|
#define CHECKOUT_H
|
|
|
|
#include "hash.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.
|
|
*/
|
|
const char *unique_tracking_name(const char *name,
|
|
struct object_id *oid,
|
|
int *dwim_remotes_matched);
|
|
|
|
#endif /* CHECKOUT_H */
|