magit-add-log?

22 views
Skip to first unread message

Dave Abrahams

unread,
Apr 15, 2011, 11:19:07 PM4/15/11
to magit

What does this function do? I discovered it by accident because it's
bound to `C', but it appears to be undocumented.

Thanks,

--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Leo

unread,
Apr 16, 2011, 12:28:45 AM4/16/11
to ma...@googlegroups.com
On 2011-04-16 11:19 +0800, Dave Abrahams wrote:
> What does this function do? I discovered it by accident because it's
> bound to `C', but it appears to be undocumented.
>
> Thanks,

It adds log message in a similar way to C-x 4 a
(add-change-log-entry-other-window).

Leo

Dave Abrahams

unread,
Apr 16, 2011, 10:09:48 AM4/16/11
to Leo, ma...@googlegroups.com
At Sat, 16 Apr 2011 12:28:45 +0800,

Adds a log message to what? Does it create a new commit?

Leo

unread,
Apr 16, 2011, 12:08:22 PM4/16/11
to ma...@googlegroups.com
On 2011-04-16 22:09 +0800, Dave Abrahams wrote:
>> It adds log message in a similar way to C-x 4 a
>> (add-change-log-entry-other-window).
>
> Adds a log message to what? Does it create a new commit?

Add a commit message in a style similar to ChangeLog (See emacs source
for example) ie. if you move point to a diff hunk, hit C, it will
automatically add a line like this:

* lisp/bbdb.el (bbdb-time-stamp-format): _

and leave the point at '_' where you can complete the rest of the commit
(log) messages.

It create a commit as 'c' so the purpose of 'C' is just to facilitate a
different commit message style.

Leo

Dave Abrahams

unread,
Apr 16, 2011, 1:05:00 PM4/16/11
to Leo, ma...@googlegroups.com
At Sun, 17 Apr 2011 00:08:22 +0800,

Leo wrote:
>
> On 2011-04-16 22:09 +0800, Dave Abrahams wrote:
> >> It adds log message in a similar way to C-x 4 a
> >> (add-change-log-entry-other-window).
> >
> > Adds a log message to what? Does it create a new commit?
>
> Add a commit message in a style similar to ChangeLog (See emacs source
> for example) ie. if you move point to a diff hunk, hit C, it will
> automatically add a line like this:
>
> * lisp/bbdb.el (bbdb-time-stamp-format): _

Add a line like that *to what*? The log message for an upcoming
commit?


> and leave the point at '_' where you can complete the rest of the commit
> (log) messages.

So then `C-c C-c' commits everything that's staged, or just what I was
on when I hit `C'? AFAICT only the file I was on shows up that way in
the commit log.

> It create a commit as 'c'

What creates a commit as 'c'?

Reply all
Reply to author
Forward
0 new messages