From: "Nikolai Weibull" <now@bitwi.se>
To: "David Kowis" <dkowis@shlrm.org>
Cc: "Yakov Lerner" <iler.ml@gmail.com>, git@vger.kernel.org
Subject: Re: Thoughts on adding another hook to git
Date: Tue, 13 Jun 2006 17:26:34 +0200 [thread overview]
Message-ID: <dbfc82860606130826jd9ba61fx26d0b3e42d68c93a@mail.gmail.com> (raw)
In-Reply-To: <448EB7B6.4020708@shlrm.org>
On 6/13/06, David Kowis <dkowis@shlrm.org> wrote:
> I'm using vim.
> 1 # Explicit paths specified without -i nor -o; assuming --only paths...
> 2 #
> 3 # Updated but not checked in:
> 4 # (will commit)
> 5 #
> 6 # modified: mail/abook/DETAILS
> 7 # modified: mail/abook/HISTORY
>
> What I'd like to be able to do is have that "abook" directory name
> automatically added to the top of my commit message before it gets into
> the editor. I can do this with a script (echo ${PWD##*/}) but it'd need
> to be a hook before the editor shows up.
autocmd BufRead .git/COMMIT_MSG call setline(1, expand('%:p:h:h:t'))
But that will of course do that for all commit-messages, so your point
is still valid.
nikolai
next prev parent reply other threads:[~2006-06-13 15:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-12 18:27 Thoughts on adding another hook to git David Kowis
2006-06-12 19:06 ` Yakov Lerner
2006-06-12 19:10 ` David Kowis
2006-06-12 19:18 ` Yakov Lerner
2006-06-12 19:22 ` David Kowis
2006-06-13 6:29 ` Nikolai Weibull
2006-06-13 13:03 ` David Kowis
2006-06-13 15:26 ` Nikolai Weibull [this message]
2006-06-13 18:41 ` Junio C Hamano
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=dbfc82860606130826jd9ba61fx26d0b3e42d68c93a@mail.gmail.com \
--to=now@bitwi.se \
--cc=dkowis@shlrm.org \
--cc=git@vger.kernel.org \
--cc=iler.ml@gmail.com \
/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.
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).