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

Re: [PATCH] Documentation/git-update-index.txt: add an example of use

From
Matěj Cepl <mcepl@cepl.eu>
Date
Dec 2, 2024, 06:56 UTC
Message-ID
<D610OBLUGP4J.3OQTEHZ86D8WH@cepl.eu>
In-Reply-To
<xmqq1pyqkcu2.fsf@gitster.g>
On Mon Dec 2, 2024 at 4:01 AM CET, Junio C Hamano wrote:
> Missing sign-off.

Whoopsie! I am sorry, but given that I am probably withdrawing my submission anyway, it is not relevant, I guess.

Show 9 quoted lines
> The benefit of refreshing the index manually beforehand mostly comes
> when you are running two or more plumbing commands that do not
> refresh the index by themselves.  We used to implement an equivlent
> of today's "git status" using "git diff-files" and "git diff-cache"
> (yes, we literally ran these two commands in a row to show their
> results in the output, one for "changes to be committed" and the
> other for "changes left in the working tree"), and before running
> these two, the scripted implementation of "git status" ran "git
> update-index --refresh".

I’ve got the idea from https://groups.google.com/g/git-mentoring/c/mJnuzbUqyAQ/m/02Pr9uhmAAAJ , so I thought it something one does.

Best,
Matěj
-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
All men's miseries derive from not being able to sit in a quiet
room alone.
  -- Blaise Pascal
Previous: Junio C Hamano
Message 3 of 3 in “Documentation/git-update-index.txt: add an example of use”
  1. Documentation/git-update-index.txt: add an example of useMatěj Cepl, Dec 1, 2024
  2. Junio C HamanoDec 2, 2024
  3. Matěj CeplDec 2, 2024

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.