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

git commit broken ?

From
FBFranck Bui-Huu <vagabon.xyz@gmail.com>
Date
Apr 10, 2006, 08:02 UTC
Message-ID
<cda58cb80604100102p92e5258qf33a128f75f1b088@mail.gmail.com>

It seems that "git commit -a -c ORIG_HEAD" command do not work as expected.

Here is an example:
	$ ls
	a b c
	$ git status
	nothing to commit
	$ echo "good modif" > a
	$ echo "temp modif" > c
	$ git-update-index a
	$ git commit -m "work in prog"
	$ git reset --soft HEAD^
	$ git status
	#
	# Updated but not checked in:
	#   (will commit)
	#
	#       modified: a
	#
	#
	# Changed but not updated:
	#   (use git-update-index to mark for commit)
	#
	#       modified: c
	#
	
	$ git commit -a -c ORIG_HEAD
	$ git status
	nothing to commit

So it seems that c has been commmited this time...Is it the expected behaviour ?

My git version:
	$ git --version
	git version 1.3.0.rc3.g0ed4
Thanks
--
               Franck
Next: Junio C Hamano
Message 1 of 3 in “git commit broken ?”
  1. Franck Bui-HuuApr 10, 2006
  2. Junio C HamanoApr 10, 2006
  3. Franck Bui-HuuApr 10, 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.