zsh-workers
 help / color / mirror / code / Atom feed
From: Martin Luder <maser@winterfell.ch>
To: zsh-workers@zsh.org
Subject: [PATCH] git log --dirstat=20 --shortstat completion
Date: Wed, 17 Aug 2011 11:32:48 +0200	[thread overview]
Message-ID: <CADwPpBSfq3qg88B8avgQYpNDx3zSHR=d1bshNPQLrF-6K+8faA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

Hi

I changed git log completion so it still completes branch names when
--dirstat=20 --shortstat options are present.

I have to admit that I don’t really know what I am doing, I copied the
two lines from the git diff options function. Completion works now, though.

Martin

[-- Attachment #2: git_log.patch --]
[-- Type: application/octet-stream, Size: 681 bytes --]

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index fb04506..82858ab 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5589,6 +5589,8 @@ __git_setup_log_options () {
     '(- *)-h[display help]'
     '(           --no-decorate)--decorate=-[print out ref names of any commits that are shown]: :__git_log_decorate_formats'
     '(--decorate              )--no-decorate[do not print out ref names of any commits that are shown]'
+    '--shortstat[generate summary diffstat]'
+    '--dirstat=-[generate dirstat by amount of changes]: :__git_guard_number limit'
     '--source[show which ref each commit is reached from]')
 }
 

             reply	other threads:[~2011-08-17  9:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17  9:32 Martin Luder [this message]
2011-08-17 10:50 ` Nikolai Weibull

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='CADwPpBSfq3qg88B8avgQYpNDx3zSHR=d1bshNPQLrF-6K+8faA@mail.gmail.com' \
    --to=maser@winterfell.ch \
    --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).