From: Daniel Hahler <genml+zsh-workers@thequod.de>
To: Zsh Hackers' List <zsh-workers@zsh.org>
Subject: Re: _git commit object name completion
Date: Mon, 08 Jun 2015 00:38:13 +0200 [thread overview]
Message-ID: <5574C7D5.5060701@thequod.de> (raw)
In-Reply-To: <150606122724.ZM12761@torch.brasslantern.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06.06.2015 21:27, Bart Schaefer wrote:
> On Jun 2, 10:18am, Daniel Shahaf wrote:
> } > __git_commits gets called through __git_revisions and
> } > __git_tree_ishs for git-commit.
> } >
> } > Should be fixed by 35216, feedback/testing would be welcome on that.
> }
> } I've been using 35216 in my normal build for the past couple of weeks
> } and haven't noticed anything odd. Ship it?
>
> I would say so. I thought it was already in. Definitely now that 5.0.8
> is out, it should get committed to be tested adequately.
Pushed as e8cf611.
Thanks for reminding me.
I've created a Vim function to automate the ChangeLog addition:
fun! InsertZshChangelog()
" Get X-Ref and subject from "git log".
let gitlog = systemlist("git log --name-only --pretty=format:'%s' -1")
let [xref, subject] = split(gitlog[0], '^\d\+\zs: ')
let files = gitlog[1:-1]
exe "normal! ggO\<C-R>=strftime('%Y-%m-%d')\<CR> Daniel Hahler \<zsh@thequod.de>\<CR>\<CR>\<C-V>\<Tab>* \<C-R>=xref\<CR>: \<C-R>=join(files, ', ')\<CR>: \<C-R>=subject\<CR>.\<CR>"
endfun
Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iD8DBQFVdMfVfAK/hT/mPgARAoy7AJ4u8N1InIGXI3RN9+x2AkqIedU6SgCgxWTo
CSUccAzgLj7Lg98VRVDcg84=
=nbcN
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2015-06-07 22:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 1:38 Daniel Shahaf
2015-05-19 4:40 ` Bart Schaefer
2015-05-19 7:13 ` Daniel Hahler
2015-05-19 8:27 ` Daniel Hahler
2015-06-02 10:18 ` Daniel Shahaf
2015-06-06 19:27 ` Bart Schaefer
2015-06-07 22:38 ` Daniel Hahler [this message]
2015-06-11 11:30 ` ChangeLog generation (was: Re: _git commit object name completion) 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:
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=5574C7D5.5060701@thequod.de \
--to=genml+zsh-workers@thequod.de \
--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).