Merge branch 'jc/heads-are-branches'

The "--heads" option of "ls-remote" and "show-ref" has been been
deprecated; "--branches" replaces "--heads".

* jc/heads-are-branches:
  show-ref: introduce --branches and deprecate --heads
  ls-remote: introduce --branches and deprecate --heads
  refs: call branches branches
This commit is contained in:
Junio C Hamano
2024-06-20 15:45:16 -07:00
8 changed files with 78 additions and 39 deletions

View File

@@ -200,7 +200,7 @@ struct ref {
};
#define REF_NORMAL (1u << 0)
#define REF_HEADS (1u << 1)
#define REF_BRANCHES (1u << 1)
#define REF_TAGS (1u << 2)
struct ref *find_ref_by_name(const struct ref *list, const char *name);