Re: [PATCH v6 01/11] for-each-ref: extract helper functions out of grab_single_ref()

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

 



Karthik Nayak <karthik.188@xxxxxxxxx> writes:

> + * Given a refname, return 1 if the refname matches with one of the patterns

You can "match refname with pattern".  But "refname matches the
pattern" without "with", I think.

I am not a native, though.

> + * while the pattern is a pathname like 'refs/tags' or 'refs/heads/master'
> + * and so on, else return 0. Supports use of wild characters.

s/wild/wildcard/.

	Return 1 if the refname matches with one of the patterns,
	otherwise 0.  The patterns can be literal prefix (e.g. a
	refname "refs/heads/master" matches a pattern "refs/heads/")
	or a wildcard (e.g. the same ref matches "refs/heads/m*",
	too).

perhaps?

--
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]