22 comments

[ 2.9 ms ] story [ 56.0 ms ] thread
Warning: that tab completion script will be very slow if you have lots of branches.
Why is the browser history being filled up?
Because you are browsing too much and too fast :)
The trimWhitespace filter removes both leading and trailing whitespace. Ouch.
I'm still looking for something that will make git file completion as nice as hg's. That is, in hg when I type hg diff <first couple characters of a modified file path> it can complete it for me. Ditto for commit, merge, etc.
I miss doing these at http://gitready.com. For years now I've accepted suggestions but haven't written any up. If you submit a PR for a new post I'll gladly merge and publish it (after review!).

https://github.com/gitready/gitready

I don't mean to hijack this thread, but I just wanted to express my appreciation: I love git ready! It was truly invaluable to me when I was learning git, and still today, I always seek it out in git-related search results. Great work, and thank you!
Wow thanks for that autocorrect tip.

It always annoyed me when I make a typo and git almost always knows what I meant but doesn't correct it for me.

It was all a git config away.

I'd be interested in more git config options. Anyone know where I can find a full list? A quick google shows me the basic user name, email, etc options which I already have.

For those that are curious how the autocorrect does its magic, here is the code https://github.com/git/git/blob/master/help.c#L293.

The most important part of the algorithm is the line "levenshtein(cmd, candidate, 0, 2, 1, 3) + 1;". This calculates the levenshtein distance between what you typed and valid commands, using different weights for different types of manipulations. In this case, 0 for swaps, 2 for substitutions, 1 for adds and 3 for deletes.

This showterm stuff is cool, but I really don't think it's ready for prime time. Besides breaking browser navigation by filling up the history or something, all the terminals play simultaneously when I open the page, and once a terminal finishes none of the buttons work anymore, only the manual slider. This is in Chrome.