Re: Problem with git-apply?
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Nov 4, 2006, 07:30 UTC
- Message-ID
- <20061104073000.GB9422@spearce.org>
- In-Reply-To
- <20061104072349.GA19667@cubit>
Kevin Shanahan <kmshanah@disenchant.net> wrote:
> git apply ../test.diff
Try:
git apply --index ../test.diff
instead. The --index is needed to record the new file in the index; otherwise it won't actually be added during commit.