ls-files [Was: Re: Fwd: git status options feature suggestion]

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Cloos
Date: Thursday, October 9, 2008 - 2:23 pm

>>>>> "Johannes" == Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


Johannes> Which is good!  As ls-files is listed as plumbing.
Johannes> Users should not need to call ls-files,

That is a bug, then.  ls-files is one of the more important user-level
commands in git.

It is vastly more efficient than find(1) or a --recursive call to
grep(1).

Searching through a repository to find which file(s) define or use some
function, struct, class or similar is a common occurance.  Or to find
which dir(s) contain(s) file(s) matching a given regexp.  Or a number
of other uses.  (Tags might be useful if one does a lot of searching
in a given repo, but grep is quicker for infrequent searches and the
tags utils do not support all file types.)

ls-files is definitely dual-use.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fwd: git status options feature suggestion, Caleb Cushing, (Wed Oct 8, 11:27 pm)
Re: Fwd: git status options feature suggestion, Johannes Schindelin, (Thu Oct 9, 2:03 am)
Re: Fwd: git status options feature suggestion, Michael J Gruber, (Thu Oct 9, 8:12 am)
ls-files [Was: Re: Fwd: git status options feature suggestion], James Cloos, (Thu Oct 9, 2:23 pm)
Re: ls-files, James Cloos, (Thu Oct 9, 3:52 pm)
Re: Fwd: git status options feature suggestion, Caleb Cushing, (Thu Oct 9, 7:20 pm)
Re: Fwd: git status options feature suggestion, Elijah Newren, (Thu Oct 9, 9:25 pm)
Re: Fwd: git status options feature suggestion, Johannes Schindelin, (Fri Oct 10, 4:13 am)
Re: Fwd: git status options feature suggestion, Jeff King, (Sat Oct 11, 9:49 pm)
Re: Fwd: git status options feature suggestion, Junio C Hamano, (Sat Oct 11, 11:41 pm)
Re: Fwd: git status options feature suggestion, Jeff King, (Sat Oct 11, 11:45 pm)
Re: Fwd: git status options feature suggestion, Junio C Hamano, (Sun Oct 12, 1:10 am)
Re: Fwd: git status options feature suggestion, Jeff King, (Sun Oct 12, 1:26 am)
Re: Fwd: git status options feature suggestion, Junio C Hamano, (Sun Oct 12, 2:58 am)
Re: git status options feature suggestion, Wincent Colaiuta, (Sun Oct 12, 3:47 am)
Re: git status options feature suggestion, Teemu Likonen, (Sun Oct 12, 4:40 am)
Re: git status options feature suggestion, Andreas Ericsson, (Sun Oct 12, 6:52 am)
Re: Fwd: git status options feature suggestion, Shawn O. Pearce, (Sun Oct 12, 11:05 am)
Re: Fwd: git status options feature suggestion, Jeff King, (Sun Oct 12, 5:59 pm)
Re: Fwd: git status options feature suggestion, Jeff King, (Sun Oct 12, 6:04 pm)
Re: Fwd: git status options feature suggestion, Jeff King, (Sun Oct 12, 6:06 pm)
Re: Fwd: git status options feature suggestion, Shawn O. Pearce, (Sun Oct 12, 6:30 pm)
Re: Fwd: git status options feature suggestion, Junio C Hamano, (Sat Oct 25, 6:47 pm)
Re: Fwd: git status options feature suggestion, Jeff King, (Sat Oct 25, 9:59 pm)