Re: Is there an API to the .gitignore capability?

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

 



On Sun, Jun 2, 2013 at 9:40 PM, Peng Yu <pengyu.ut@xxxxxxxxx> wrote:
> Hi,
>
> .gitignore is a flexible way to customize what dir/file to search or
> not to search. So it is of general use and is more flexible than what
> is offered by "find". I'm wondering if there is an API than I can use
> besides using it within git. Thanks.

Git provides no C API, if that's what you mean. You can link with
libgit.a, but there's no guarantee it won't break someday. At a higher
"API" level such as shell scripting, still "no", but I think you could
modify "git ls-files" to support running 'ls-files -i' without a git
repository (like git-grep --no-index). I think it'll work, mostly, but
not entirely sure.
--
Duy
--
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]