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

Re: Dumb "continuous" commit dumb question

From
Jeff King <peff@peff.net>
Date
Aug 19, 2008, 17:55 UTC
Message-ID
<20080819175520.GB10142@coredump.intra.peff.net>
In-Reply-To
<20080819144853.GD20947@spearce.org>
On Tue, Aug 19, 2008 at 07:48:53AM -0700, Shawn O. Pearce wrote:
Show 7 quoted lines
> Actually you can do something like this:
> 
> 	export GIT_INDEX_FILE=.git/temp-branch-index &&
> 	cp .git/index $GIT_INDEX_FILE &&
> 	git add . &&
> 	git add -u &&
> 	git update-ref refs/heads/temp $(date | git commit-tree $(git write-tree) -p temp)
Get with the times, Shawn. It's "git add -A" now. ;)
-Peff
Previous: Shawn O. PearceNext: Avery Pennarun
Message 5 of 9 in “Dumb "continuous" commit dumb question”
  1. Pat LeSmitheAug 19, 2008
  2. Marcus GriepAug 19, 2008
  3. David TweedAug 19, 2008
  4. Shawn O. PearceAug 19, 2008
  5. Jeff KingAug 19, 2008
  6. Avery PennarunAug 19, 2008
  7. David TweedAug 19, 2008
  8. Avery PennarunAug 19, 2008
  9. David TweedAug 19, 2008

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.