Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _git commit object name completion
- X-seq: zsh-workers 35414
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: _git commit object name completion
- Date: Mon, 08 Jun 2015 00:38:13 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=postfix2; t= 1433716694; bh=GkRlZ9fxz1tX+kgUATfyxZAN1cvd+hm1QF1Zfu2jC54=; b=P GOmSENjXGqJywBDEceRIbrUhdtzwVB41NPDd/OsPEvYRLC0fjHay2DRFkmXCYGDM LOL0GG+6w09ncrN2m8tJ3jgvK7WdSncaOYL1hE9wDNbWWEd4fftrjAP8y0gCVw57 h0qeuTgBaohu5wHiYsJ9pUGCsz9Mr16tPQZWDnwvF4=
- In-reply-to: <150606122724.ZM12761@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150519013803.GC2024@tarsus.local2> <555AF3FD.7000105@thequod.de> <20150602101859.GA5169@tarsus.local2> <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@xxxxxxxxxx>\<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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author