diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-03-14 15:23:18 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-03-14 15:23:18 -0700 |
| commit | 07198afbd19f5ba4f991d9b554bc320690de19dc (patch) | |
| tree | af4a70e09a97335a1b5db7ce0f61f179c47f905b /fetch-pack.h | |
| parent | c809496c97122b7d297e7216c3bfff7262b212e0 (diff) | |
| parent | d56583ded679f2eade3994d855c8d605e2964710 (diff) | |
| download | git-07198afbd19f5ba4f991d9b554bc320690de19dc.tar.xz | |
Merge branch 'mm/fetch-show-error-message-on-unadvertised-object'
"git fetch" that requests a commit by object name, when the other
side does not allow such an request, failed without much
explanation.
* mm/fetch-show-error-message-on-unadvertised-object:
fetch-pack: add specific error for fetching an unadvertised object
fetch_refs_via_pack: call report_unmatched_refs
fetch-pack: move code to report unmatched refs to a function
Diffstat (limited to 'fetch-pack.h')
| -rw-r--r-- | fetch-pack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h index c912e3d321..a2d46e6e75 100644 --- a/fetch-pack.h +++ b/fetch-pack.h @@ -45,4 +45,10 @@ struct ref *fetch_pack(struct fetch_pack_args *args, struct sha1_array *shallow, char **pack_lockfile); +/* + * Print an appropriate error message for each sought ref that wasn't + * matched. Return 0 if all sought refs were matched, otherwise 1. + */ +int report_unmatched_refs(struct ref **sought, int nr_sought); + #endif |
