On Mon, 12 Nov 2007, eric miao wrote: > All, > > Most of the time I'm using git-log for inspecting a brief history > and insert/remove/modify commits between, which I have to > type "git log --abbrev-commit --pretty=oneline" every time. Is > it possible for git to remember this command line options > preference? > > And no, I don't really want to use shell's alias or something > else, I was just used to type "git xxx" :-) Git has a built-in alias mechanism, which is probably what you want. If you put in your config file: [alias] xxx = log --abbrev-commit --pretty=online then you can type "git xxx" and it'll do what you want. Changing the default behavior of the basic commands is looked down on because there are scripts that use them to get their input, and those scripts have particular formats they expect. -Daniel *This .sig left intentionally blank* - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html