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

Re: [PATCH] gitk: avoid hardcoded 40 character length for oid

From
Carlo Arenas <carenas@gmail.com>
Date
Oct 11, 2021, 20:37 UTC
Message-ID
<CAPUEspha9Ymxaqp17JA5DaftvxeU_XmTZs089D1zb9WidYn+Pg@mail.gmail.com>
In-Reply-To
<CAPig+cQi_baTaV+Z=UJcrwS+C1dYnQ6bKEA-Bcim2VUOu8VGJA@mail.gmail.com>
On Mon, Oct 11, 2021 at 1:04 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 17 quoted lines
>
> On Mon, Oct 11, 2021 at 3:56 PM Carlo Marcelo Arenas Belón
> > diff --git a/gitk b/gitk
> > @@ -12338,6 +12347,18 @@ catch {
> > +if {![catch {exec git config --get extensions.objectformat} oid_type]
> > +    && $oid_type eq "sha256" } {
> > +    set oid_size 64
> > +} else {
> > +    set oid_type "sha1"
> > +    set oid_size 40
> > +}
>
> Should this be using:
>
>     git rev-parse --show-object-format
>
> rather than `git-config`?
definitely a better fit, will be included in the next version.
Carlo
Previous: Eric Sunshine
Message 4 of 4 in “gitk: avoid hardcoded 40 characters for oid”
  1. gitk: avoid hardcoded 40 characters for oidCarlo Marcelo Arenas Belón, Oct 11, 2021
  2. gitk: avoid hardcoded 40 character length for oidCarlo Marcelo Arenas Belón, Oct 11, 2021
  3. Eric SunshineOct 11, 2021
  4. Carlo ArenasOct 11, 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.