help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: "Lawrence Velázquez" <larryv@zsh.org>
Cc: Sam Bostock <sam.bostock@shopify.com>, zsh-workers@zsh.org
Subject: Re: [PATCH] Abbreviate commit hash in prompt during git rebase
Date: Sun, 17 Apr 2022 20:17:39 +0000	[thread overview]
Message-ID: <20220417201739.GC15901@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <b8d68d76-9437-4c73-9b8e-f8c6a1d76eae@www.fastmail.com>

Lawrence Velázquez wrote on Sun, Apr 17, 2022 at 16:08:34 -0400:
> That would also avoid coupling prompt appearance to the configuration
> of a separate piece of software, which is a notion that I like less
> and less the more I think about it.  I can easily imagine a user
> who might want to see full hashes in Git output but not in their
> prompt.

Agreed, but one could use the «command» style to have vcs_info invoke
Git as «git -c core.abbrev=42», in order to use core.abbrev as part of
the solution without this problem.



  reply	other threads:[~2022-04-17 20:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-13  4:41 Sam Bostock
2022-04-13  5:38 ` Lawrence Velázquez
2022-04-13 19:53   ` Sam Bostock
2022-04-17 17:52     ` Daniel Shahaf
2022-04-17 20:08       ` Lawrence Velázquez
2022-04-17 20:17         ` Daniel Shahaf [this message]
2022-04-13 22:03 ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220417201739.GC15901@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=larryv@zsh.org \
    --cc=sam.bostock@shopify.com \
    --cc=zsh-workers@zsh.org \
    --subject='Re: [PATCH] Abbreviate commit hash in prompt during git rebase' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).