git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Repository specific git commands

From
Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
Date
Jan 7, 2008, 13:14 UTC
Message-ID
<8e04b5820801070514l7a49b0fewcaa5f4b6d9a6c622@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.64.0801071352470.14355@wbgn129.biozentrum.uni-wuerzburg.de>
On 1/7/08, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 16 quoted lines
> 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.
Previous: Johannes SchindelinNext: Ciprian Dorin Craciun
Message 3 of 4 in “Repository specific git commands”
  1. Ciprian Dorin CraciunJan 7, 2008
  2. Johannes SchindelinJan 7, 2008
  3. Ciprian Dorin CraciunJan 7, 2008
  4. Ciprian Dorin CraciunMay 23, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.