Today I learnt: you can do this by adding --no-edit
to the invocation.
I learnt it the hard way: scanning the manpage from start to end. As the "false" symbiont to --edit
, defined via OPT_BOOL, you won't have much success grepping --no-edit
through the source either.
The curious developer ...
While working on gsoc 2011, I identified the is-binary check as a potential slowdown in my personal notes. (Yes, it's done for every file.) I tried to disable it with a command-line switch to git-diff, but that was ugly and hack-ish.
Recently I was looking at diff codepath again ...
I was researching buffer_is_binary()
in git the other day in the hopes of speeding up the diff codepath, and stumbled on to this thread that digressed into statistics, a module I'm taking right now. Interesting read.
Had to do a code submission for a module of mine.
Actually, we're supposed to use hg. I'll talk about my hack-y git->hg workflow (instead of through hg-git) when I get the time.
I've been building git from source for some time now - but recently, I decided to get msysgit running. Nowadays, I've been working on my laptop, and cygwin-git is sloooow on it - rebase --interactive
aside, there is a noticeable lag even for tasks like add
and commit
.
First up ...
Available after v1.7.2.1-103-g07cd900 on master.
Today, while using my git checkout -B
feature, I stumbled on a spectacular segfault.
However, gdb tracebacks on cygwin are terribly useless. Here's my gdb session:
$ gdb --args ./git --exec-path=. checkout -B rc/master
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License ...
You're probably doing this:
$ git branch | grep \*
* master
Try this:
$ git rev-parse --symbolic-full-name HEAD
refs/heads/master
Substantial typing required, though.
Recently, I noticed that after resolving merge conflicts, git commit
showed the full SHA-1.
For example, in my working tree for rctay-blog:
$ git log -1 # whereami?
f1a0068 (Merge branch 'rc/fix-atom' into rc/master, Tue May 25 13:29:30 2010 +0800, Tay Ray Chuan)
$ git merge rc/atom-last-modified
Auto-merging ...