From: Ciprian Dorin Craciun Date: Mon, 07 Jan 2008 13:14:39 GMT Subject: Re: Repository specific git commands Message-ID: <8e04b5820801070514l7a49b0fewcaa5f4b6d9a6c622@mail.gmail.com> In-Reply-To: On 1/7/08, Johannes Schindelin wrote: > Hi, > > On Mon, 7 Jan 2008, Ciprian Dorin Craciun wrote: > > > -- either define an alias -- but usually it is very restrictive in > > terms of what the alias can do; > > You probably missed the possibility of executing a shell command (or > commands) viathe "!" prefix. > > See also > > http://git.or.cz/gitwiki/Aliases/ > > Hth, > Dscho I knew about the "!" prefix but this allows me to write only a one-line script... But in the case I want more complex scripts? (Just look at how hard it is to read the "Getting the diff of only one function" example...) (Yes I could create a script, place it in a special folder and add an alias to it -- remembering to put the right path... But it is not as simple as adding it to the bin directory.) Ciprian.