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

Re: Re* Unexpected behavior with the rev-parse operation

From
Toru Okugawa <castor.4bit@gmail.com>
Date
May 1, 2024, 04:55 UTC
Message-ID
<CANHPH1-rdP6V_9P3mA+hMpDqVGkskBqrL6tJLYfePBv=WutCjg@mail.gmail.com>
In-Reply-To
<xmqqedamzo17.fsf@gitster.g>
On Wed, May 1, 2024 at 3:46 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
>
> When you write a script that you might want to use as a part of a
> hook, for example, you may end up running it inside .git/ and it may
> be necessary (depending on what the script does and how it is
> written) to tell where you are in the working tree (or if you are in
> the working tree in the first place).

I misunderstood the purpose of the option initially, but now I understand it. Thank you for your explanation.

Previous: Junio C Hamano
Message 6 of 6 in “Unexpected behavior with the rev-parse operation”
  1. Toru OkugawaApr 15, 2024
  2. Eric SunshineApr 28, 2024
  3. Re* Unexpected behavior with the rev-parse operationJunio C Hamano, Apr 28, 2024
  4. Toru OkugawaApr 30, 2024
  5. Junio C HamanoApr 30, 2024
  6. Toru OkugawaMay 1, 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.