zsh-workers
 help / color / mirror / code / Atom feed
From: "Štěpán Němec" <stepnem@gmail.com>
To: zsh-workers@zsh.org
Subject: [PATCH] _git: add missing --pretty formats and improve descriptions
Date: Wed, 24 Mar 2021 00:17:07 +0100	[thread overview]
Message-ID: <20210323231707.669682-1-stepnem@gmail.com> (raw)

---
 Completion/Unix/Command/_git | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 81a060e4d5d7..ced89b50100a 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -7573,13 +7573,15 @@ __git_setup_diff_stage_options () {
 __git_format_placeholders() {
   local sep
   local -a disp names placeholders expl
-  _describe -t formats format '( oneline:"commit-ids and subject of messages"
-    short:"few headers and only subject of messages"
-    medium:"most parts of messages"
-    full:"all parts of commit messages"
-    fuller:"like full and includes dates"
-    email:"use email headers like From and Subject"
-    raw:"the raw commits" )' -- '( format:"specify own format" )' -S ':' && return
+  _describe -t formats format '( oneline:"<hash> <title>"
+    short:"commit hash plus author and title headers"
+    medium:"like short plus author date header and full message"
+    full:"like medium with committer header instead of date"
+    fuller:"like full plus author and commit date headers"
+    reference:"<abbrev hash> (<title>, <short author date>)"
+    email:"email patch format"
+    mboxrd:"like email with From lines in message quoted with >"
+    raw:"entire commit object" )' -- '( format:"specify own format" )' -S ':' && return
   compset -P 'format:'
     compset -P '(%[^acgCG]|%?[^%]|[^%])#'
     if compset -P '%C'; then

base-commit: 78cf45587100965553a879fc8b026294c79bd756
-- 
2.30.2



                 reply	other threads:[~2021-03-23 23:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20210323231707.669682-1-stepnem@gmail.com \
    --to=stepnem@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).