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

Re: [PATCH] Adding Correct Useage Notification and -h Help flag

From
Junio C Hamano <junkio@cox.net>
Date
Jun 14, 2005, 05:52 UTC
Message-ID
<7vaclt8oyu.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<1118726714.8712.22.camel@localhost.localdomain>
>>>>> "JP" == James Purser <purserj@winnsw.com.au> writes:

JP> When running git commit I am told to run git-update-cache JP> against the files I want to commit. Would it be easier to JP> have the git-commit-script run this itself? Take out that JP> second step and all that.

That's a question better asked Linus, not me. My preference would be (1) to ask the user if he wants us to automatically run git-update-cache to all of those files, giving him an option to decline and sort things out himself; or (2) leave things as they are.

The core GIT treats the index file and the working directory contents two logically separate entities, and we always require the user to consciously tell us what to put in and remove from the index file. The core GIT is all about committed tree objects and the index file, and the working directory is merely a temporary area the user can use to build the state the user wishes to have in the index file. From this point of view, running git-update-cache ourselves without asking the user is a definite no-no.

Previous: James PurserNext: James Purser
Message 5 of 6 in “Adding Correct Useage Notification and -h Help flag”
  1. Adding Correct Useage Notification and -h Help flagJames Purser, Jun 14, 2005
  2. Junio C HamanoJun 14, 2005
  3. James PurserJun 14, 2005
  4. James PurserJun 14, 2005
  5. Junio C HamanoJun 14, 2005
  6. James PurserJun 14, 2005

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.