Re: git-ls-files --added?
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- May 25, 2009, 07:46 UTC
- Message-ID
- <20090525074606.GA30061@atjola.homenet>
- In-Reply-To
- <85647ef50905250031m375a14d9y252444a8bdc250b5@mail.gmail.com>
On 2009.05.25 11:31:42 +0400, Constantine Plotnikov wrote:
> BTW git-diff won't work in situation when the directory was just > initialized and there were no commit. In that case added file = staged > file and it is possible to use git-ls-files.
You can use the object name of the empty tree with diff-* in that case, that's what the pre-commit.sample hook does.
Björn