mirror of
https://github.com/git/git.git
synced 2024-11-27 03:53:55 +08:00
8a676bdc5c
The "hash-ll.h" header was introduced via d1cbe1e6d8
(hash-ll.h: split
out of hash.h to remove dependency on repository.h, 2023-04-22) to make
explicit the split between hash-related functions that rely on the
global `the_repository`, and those that don't. This split is no longer
necessary now that we we have removed the reliance on `the_repository`.
Merge "hash-ll.h" back into "hash.h". This causes some code units to not
include "repository.h" anymore, which requires us to add some forward
declarations.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 lines
364 B
C
16 lines
364 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.
|
|
*/
|
|
char *unique_tracking_name(const char *name,
|
|
struct object_id *oid,
|
|
int *dwim_remotes_matched);
|
|
|
|
#endif /* CHECKOUT_H */
|