Re: how to list all files that will be comitted
- From
Karl Hasselström <kha@treskal.com>
- Date
- Jun 25, 2008, 16:14 UTC
- Message-ID
- <20080625161439.GA1794@diana.vm.bytemark.co.uk>
- In-Reply-To
- <17C0F998-66C0-4DFC-90EB-B85FF6E07844@gmail.com>
On 2008-06-25 12:01:49 -0400, Rhodes, Kate wrote:
> yeah, but i was hoping for plumbing, not porcelain, that showed just > what i wanted so that i didn't have to parse status' output.
Unless you want a listing of all the files in the index, you probably want to call diff-index.
git diff-index --cached <tree-ish>
gives you the diff between the index and a tree-ish. With the --name-only option, you get only the filenames and not all the modes, blob sha1s, etc.
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle