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

Re: ms/customizable-ident-expansion

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 8, 2021, 19:14 UTC
Message-ID
<211108.864k8mfocg.gmgdl@evledraar.gmail.com>
In-Reply-To
<CABFYoQA82u8Um6L439_bU4a+WpkdXOcbU8foPjqnVw+4MnNU0A@mail.gmail.com>
On Sun, Nov 07 2021, Maksym Sobolyev wrote:
Show 7 quoted lines
> Junio, well it works and passes Occam Razor test. I even added a
> reasonable number of test cases. As I tried to explain at least once,
> having it per-directory might be advantageous, if the project pulls
> sources from all different places where you might "mute" ID
> replacement for certain parts of the tree or use a different one. Most
> of that would have to be thrown away if the feature is to be reworked
> to your liking.

Yes, isn't there also a practical use for this in the source trees of the various *BSDs who import each other's sources (but I don't know if it's useful for that).

Show 9 quoted lines
> Totay I logged into one of our products and got this message:
>
> + sudo chroot /voicelog/src su -l sobomax
> This fortune brought to you by:
> $FreeBSD: 3325fdce090fbf738dcb1f8535d16217789cbe4e $
>
> I did not know such a fortune ever existed, it has probably been
> developed around a long-long time ago before git or even linux
> existed. Just as many other more useful features around the same idea.

This on the other hand looks both neat and a bit scary, so something that previously left "$FreeBSD$" alone started expanding it? Hrm, I guess since you need to set "ident" it's no big deal.

But I wonder if we'll see any downstream breakage for people who opt-in to this, who have code they didn't know about that expects an RCS/CVS version, and suddenly gets a SHA-1-sized hex string instead :)

Previous: Junio C HamanoNext: Junio C Hamano
Message 10 of 11 in “What's cooking in git.git (Oct 2021, #07; Fri, 29)”
  1. Junio C HamanoOct 30, 2021
  2. ab/config-based-hooks-2 (was: What's cooking in git.git (Oct 2021, #07; Fri, 29))Ævar Arnfjörð Bjarmason, Nov 1, 2021
  3. Junio C HamanoNov 1, 2021
  4. ab/only-single-progress-at-once (was: What's cooking in git.git (Oct 2021, #07; Fri, 29))Ævar Arnfjörð Bjarmason, Nov 1, 2021
  5. tb/plug-pack-bitmap-leaks (was: What's cooking in git.git (Oct 2021, #07; Fri, 29))Ævar Arnfjörð Bjarmason, Nov 1, 2021
  6. tp/send-email-completion (was: What's cooking in git.git (Oct 2021, #07; Fri, 29))Ævar Arnfjörð Bjarmason, Nov 1, 2021
  7. js/scalar (was: What's cooking in git.git (Oct 2021, #07; Fri, 29))Ævar Arnfjörð Bjarmason, Nov 1, 2021
  8. ms/customizable-ident-expansion (was: What's cooking in git.git (Oct 2021, #07; Fri, 29))Ævar Arnfjörð Bjarmason, Nov 1, 2021
  9. Junio C HamanoNov 1, 2021
  10. Ævar Arnfjörð BjarmasonNov 8, 2021
  11. Junio C HamanoNov 8, 2021

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.