Re: [PATCH v2 9/9] sha1_name: add support for @{publish} marks
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 10, 2014, 21:49 UTC
- Message-ID
- <CALkWK0nU_Esy6QoQG-vv3nKE=P=gWDiFgRp4RKvq4DbxOntkaA@mail.gmail.com>
- In-Reply-To
- <1397156686-31349-10-git-send-email-felipe.contreras@gmail.com>
Felipe Contreras wrote:
Show 13 quoted lines
> diff --git a/sha1_name.c b/sha1_name.c
> index aa3f3e0..a36852d 100644
> --- a/sha1_name.c
> +++ b/sha1_name.c
> @@ -415,9 +415,9 @@ static int ambiguous_path(const char *path, int len)
> return slash;
> }
>
> -static inline int upstream_mark(const char *string, int len)
> +static inline int tracking_mark(const char *string, int len)
> {
> - const char *suffix[] = { "upstream", "u" };
> + const char *suffix[] = { "upstream", "u", "publish", "p" };Oh, another thing: on some threads, people decided that "@{push}" would be a more apt name (+ alias @{u} to @{pull} for symmetry).