* reflog weirdness
@ 2007-12-28 19:57 Thien-Thi Nguyen
2007-12-28 21:20 ` Junio C Hamano
0 siblings, 1 reply; 7+ messages in thread
From: Thien-Thi Nguyen @ 2007-12-28 19:57 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 111 bytes --]
hello,
i use git-1.5.3.5 and see the following fragment from "git reflog"
(not inline due to binary values):
[-- Attachment #2: fragment of \"git reflog\" output --]
[-- Type: application/octet-stream, Size: 384 bytes --]
[-- Attachment #3: Type: text/plain, Size: 84 bytes --]
i'd like to get rid of (or somehow get git to hide) the {21} line.
any hints?
thi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: reflog weirdness
2007-12-28 19:57 reflog weirdness Thien-Thi Nguyen
@ 2007-12-28 21:20 ` Junio C Hamano
2007-12-28 21:35 ` Thien-Thi Nguyen
0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-12-28 21:20 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: git
Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> i'd like to get rid of (or somehow get git to hide) the {21} line.
> any hints?
$ vi .git/logs/HEAD
and truncate that line after "commit: " to remove the part that
would normally show the one-line commit log message.
It would be more interesting to know why garbage follows
"commit: " on that one entry, though. How does commit 20d9d23
look like (the tracked contents are not interesting --- the
commit log message is)?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: reflog weirdness
2007-12-28 21:20 ` Junio C Hamano
@ 2007-12-28 21:35 ` Thien-Thi Nguyen
2007-12-28 22:01 ` Junio C Hamano
0 siblings, 1 reply; 7+ messages in thread
From: Thien-Thi Nguyen @ 2007-12-28 21:35 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 542 bytes --]
() Junio C Hamano <gitster@pobox.com>
() Fri, 28 Dec 2007 13:20:16 -0800
$ vi .git/logs/HEAD
and truncate that line after "commit: " to remove the
part that would normally show the one-line commit log
message.
thanks for the tip. i'll do that as soon as i've had a
chance to ponder the repercussions. in the meantime...
How does commit 20d9d23 look like (the tracked contents
are not interesting --- the commit log message is)?
here is the (again, not inlined due to strange bytes) top of
"git show 20d9d23" output:
[-- Attachment #2: top of \"git show\" output --]
[-- Type: application/octet-stream, Size: 257 bytes --]
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
i see that the body of the log message (three bytes)
corresponds to the first three bytes of the associated
line in .git/logs/HEAD.
thi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: reflog weirdness
2007-12-28 21:35 ` Thien-Thi Nguyen
@ 2007-12-28 22:01 ` Junio C Hamano
2007-12-28 22:44 ` Thien-Thi Nguyen
0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-12-28 22:01 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: git
Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> i see that the body of the log message (three bytes)
> corresponds to the first three bytes of the associated
> line in .git/logs/HEAD.
Thanks.
Was it a buggy "git commit" command, or a bad commit log message
was fed to "git commit" by the user, and there is nothing for me
to worry about?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: reflog weirdness
2007-12-28 22:01 ` Junio C Hamano
@ 2007-12-28 22:44 ` Thien-Thi Nguyen
2007-12-29 0:06 ` Junio C Hamano
0 siblings, 1 reply; 7+ messages in thread
From: Thien-Thi Nguyen @ 2007-12-28 22:44 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
() Junio C Hamano <gitster@pobox.com>
() Fri, 28 Dec 2007 14:01:55 -0800
Was it a buggy "git commit" command, or a bad commit log
message was fed to "git commit" by the user, and there is
nothing for me to worry about?
i'm sorry, even though it was only a couple days ago, the actual
events are far back in my memory, so i can't say. i wouldn't
worry about it -- probably user error. (i'm new w/ git. most of
the time i drive it from w/in emacs, which is well behaved; it is
when i leave that comparative safety to do some flailing from the
command-line that things go weird.)
i suppose one way to improve git would be to test how it handles
interruption (control-c in the middle of a commit, for example).
a bit tricky to arrange (reproducibly), though...
now i go search the docs for how to replace that log message.
thi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: reflog weirdness
2007-12-28 22:44 ` Thien-Thi Nguyen
@ 2007-12-29 0:06 ` Junio C Hamano
2008-01-02 11:48 ` Thien-Thi Nguyen
0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2007-12-29 0:06 UTC (permalink / raw)
To: Thien-Thi Nguyen; +Cc: git
Thien-Thi Nguyen <ttn@gnuvola.org> writes:
> () Junio C Hamano <gitster@pobox.com>
> () Fri, 28 Dec 2007 14:01:55 -0800
>
> Was it a buggy "git commit" command, or a bad commit log
> message was fed to "git commit" by the user, and there is
> nothing for me to worry about?
>
> i'm sorry, even though it was only a couple days ago, the actual
> events are far back in my memory, so i can't say. i wouldn't
> worry about it -- probably user error. (i'm new w/ git. most of
> the time i drive it from w/in emacs, which is well behaved; it is
> when i leave that comparative safety to do some flailing from the
> command-line that things go weird.)
>
> i suppose one way to improve git would be to test how it handles
> interruption (control-c in the middle of a commit, for example).
> a bit tricky to arrange (reproducibly), though...
>
> now i go search the docs for how to replace that log message.
"git-rebase -i"
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: reflog weirdness
2007-12-29 0:06 ` Junio C Hamano
@ 2008-01-02 11:48 ` Thien-Thi Nguyen
0 siblings, 0 replies; 7+ messages in thread
From: Thien-Thi Nguyen @ 2008-01-02 11:48 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
() Junio C Hamano <gitster@pobox.com>
() Fri, 28 Dec 2007 16:06:36 -0800
"git-rebase -i"
thanks. works great.
thi
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-01-02 12:05 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-28 19:57 reflog weirdness Thien-Thi Nguyen
2007-12-28 21:20 ` Junio C Hamano
2007-12-28 21:35 ` Thien-Thi Nguyen
2007-12-28 22:01 ` Junio C Hamano
2007-12-28 22:44 ` Thien-Thi Nguyen
2007-12-29 0:06 ` Junio C Hamano
2008-01-02 11:48 ` Thien-Thi Nguyen
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).