Re: [RFC] git commit --branch
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 29, 2006, 21:14 UTC
- Message-ID
- <Pine.LNX.4.63.0605292310280.17412@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <20060529202851.GE14325@admingilde.org>
Hi,
On Mon, 29 May 2006, Martin Waitz wrote:
> Sometimes it is neccessary to have some local modifications in the tree > in order to test it and work with it.
Doesn't
$ git-update-index $(git-ls-files --modified) $ git-checkout -b tempBranch $ git-commit -m "to test"
work? It also avoids totally bogus parents (if I read your patch correctly, you take the current HEAD as the true parent, but record the current HEAD of the other branch as parent nevertheless).
Ciao, Dscho