Re: [PATCH 3/8] add get_sha1_with_real_ref() returning full name of ref on demand

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steffen Prohaska <prohaska@xxxxxx> writes:

> The new function can be used by "git rev-parse" to print the full
> name of the matched ref and can be used by "git send-pack" to expand
> a local ref to its full name.

"can be"?  "will be used to implement git rev-parse --some-option"?

> +static int get_sha1_1(const char *name, int len, unsigned char *sha1, char **real_ref);
>  
>  static int get_parent(const char *name, int len,
>  		      unsigned char *result, int idx)
>  {
>  	unsigned char sha1[20];
> -	int ret = get_sha1_1(name, len, sha1);
> +	int ret = get_sha1_1(name, len, sha1, /*real_ref=*/ 0);

A null pointer constant in git sources is spelled as "NULL", not "0".
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux