git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Shawn PearceNext: Jakub Narebski
Message 7 of 15 in “[RFC] git commit --branch”
  1. Martin WaitzMay 29, 2006
  2. Shawn PearceMay 29, 2006
  3. Martin WaitzMay 29, 2006
  4. Shawn PearceMay 29, 2006
  5. Martin WaitzMay 29, 2006
  6. Shawn PearceMay 29, 2006
  7. Johannes SchindelinMay 29, 2006
  8. Jakub NarebskiMay 29, 2006
  9. Martin WaitzMay 29, 2006
  10. Johannes SchindelinMay 29, 2006
  11. Junio C HamanoMay 30, 2006
  12. Martin WaitzMay 30, 2006
  13. Junio C HamanoMay 30, 2006
  14. Martin WaitzMay 31, 2006
  15. Jon LoeligerJun 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.