{"thread":{"id":"10816","subject":"Is it possible for git to remember the options preference for \"git log\"?","startedAt":"2007-11-12T00:33:43Z","lastAt":"2007-11-12T02:21:10Z","messageCount":4,"participants":["eric miao","Jakub Narebski","Daniel Barkalow"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"59405","messageId":"f17812d70711111633u6c00d182u532fef1c16c3c94a@mail.gmail.com","threadId":"10816","inReplyTo":null,"subject":"Is it possible for git to remember the options preference for \"git log\"?","fromName":"eric miao","fromEmail":"eric.y.miao@gmail.com","sentAt":"2007-11-12T00:33:43Z","receivedAt":"2007-11-12T00:33:43Z","isPatch":false,"sender":{"key":"eric.y.miao@gmail.com","avatar":"https://gravatar.com/avatar/45c500ae8c8098c06263f27289c260c327a27e2a27f37e015af556412acd6183?d=mp&s=160"},"body":"All,\n\nMost of the time I'm using git-log for inspecting a brief history\nand insert/remove/modify commits between, which I have to\ntype \"git log --abbrev-commit --pretty=oneline\" every time. Is\nit possible for git to remember this command line options\npreference?\n\nAnd no, I don't really want to use shell's alias or something\nelse, I was just used to type \"git xxx\" :-)\n\n-- \nCheers\n- eric\n"},{"id":"59408","messageId":"fh88av$2om$1@ger.gmane.org","threadId":"10816","inReplyTo":"f17812d70711111633u6c00d182u532fef1c16c3c94a@mail.gmail.com","subject":"Re: Is it possible for git to remember the options preference for \"git log\"?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-11-12T00:56:03Z","receivedAt":"2007-11-12T00:56:03Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"eric miao wrote:\n\n\n> Most of the time I'm using git-log for inspecting a brief history\n> and insert/remove/modify commits between, which I have to\n> type \"git log --abbrev-commit --pretty=oneline\" every time. Is\n> it possible for git to remember this command line options\n> preference?\n> \n> And no, I don't really want to use shell's alias or something\n> else, I was just used to type \"git xxx\" :-)\n\nYou can always use (global) _git_ alias ;-p\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"59411","messageId":"Pine.LNX.4.64.0711111954520.29952@iabervon.org","threadId":"10816","inReplyTo":"f17812d70711111633u6c00d182u532fef1c16c3c94a@mail.gmail.com","subject":"Re: Is it possible for git to remember the options preference for \"git log\"?","fromName":"Daniel Barkalow","fromEmail":"barkalow@iabervon.org","sentAt":"2007-11-12T01:02:28Z","receivedAt":"2007-11-12T01:02:28Z","isPatch":false,"sender":{"key":"barkalow@iabervon.org","avatar":"https://avatars.githubusercontent.com/u/55364219?v=4"},"body":"On Mon, 12 Nov 2007, eric miao wrote:\n\n> All,\n> \n> Most of the time I'm using git-log for inspecting a brief history\n> and insert/remove/modify commits between, which I have to\n> type \"git log --abbrev-commit --pretty=oneline\" every time. Is\n> it possible for git to remember this command line options\n> preference?\n> \n> And no, I don't really want to use shell's alias or something\n> else, I was just used to type \"git xxx\" :-)\n\nGit has a built-in alias mechanism, which is probably what you want. If \nyou put in your config file:\n\n[alias]\n\txxx = log --abbrev-commit --pretty=online\n\nthen you can type \"git xxx\" and it'll do what you want. Changing the \ndefault behavior of the basic commands is looked down on because there are \nscripts that use them to get their input, and those scripts have \nparticular formats they expect.\n\n\t-Daniel\n*This .sig left intentionally blank*\n"},{"id":"59414","messageId":"f17812d70711111821v2e14cf6bsd65a192114872056@mail.gmail.com","threadId":"10816","inReplyTo":"Pine.LNX.4.64.0711111954520.29952@iabervon.org","subject":"Re: Is it possible for git to remember the options preference for \"git log\"?","fromName":"eric miao","fromEmail":"eric.y.miao@gmail.com","sentAt":"2007-11-12T02:21:10Z","receivedAt":"2007-11-12T02:21:10Z","isPatch":false,"sender":{"key":"eric.y.miao@gmail.com","avatar":"https://gravatar.com/avatar/45c500ae8c8098c06263f27289c260c327a27e2a27f37e015af556412acd6183?d=mp&s=160"},"body":"On Nov 12, 2007 9:02 AM, Daniel Barkalow <barkalow@iabervon.org> wrote:\n>\n> On Mon, 12 Nov 2007, eric miao wrote:\n>\n> > All,\n> >\n> > Most of the time I'm using git-log for inspecting a brief history\n> > and insert/remove/modify commits between, which I have to\n> > type \"git log --abbrev-commit --pretty=oneline\" every time. Is\n> > it possible for git to remember this command line options\n> > preference?\n> >\n> > And no, I don't really want to use shell's alias or something\n> > else, I was just used to type \"git xxx\" :-)\n>\n> Git has a built-in alias mechanism, which is probably what you want. If\n> you put in your config file:\n>\n> [alias]\n>         xxx = log --abbrev-commit --pretty=online\n>\n\nThanks, this is exactly what I want.\n\n> then you can type \"git xxx\" and it'll do what you want. Changing the\n> default behavior of the basic commands is looked down on because there are\n> scripts that use them to get their input, and those scripts have\n> particular formats they expect.\n>\n\nYe, agree, I don't think that's a good idea either.\n\n>         -Daniel\n> *This .sig left intentionally blank*\n>\n\n\n\n-- \nCheers\n- eric\n"}]}