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

Re: qgit idea: interface for cherry-picking

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Jul 4, 2006, 18:38 UTC
Message-ID
<e5bfff550607041138g60a82819lb5e59ea239b55ef5@mail.gmail.com>
In-Reply-To
<e8dqfo$3ff$1@sea.gmane.org>
On 7/4/06, Jakub Narebski <jnareb@gmail.com> wrote:
Show 12 quoted lines
> Marco Costalba wrote:
>
> >
> > Is this something that can fulfill you request? do you need something
> > different?  perhaps something as a "default to current selected SHA as
> > input argument" flag.
>
> It would be nice (I don't know if feasible) that either to provide some kind
> of parameters substitution in the likes of "%head" in the invocation line
> for a script to be expanded to the sha1 or name of head of currently
> selected commit.
>
Well, I think that the indiscussed champion in this field is git-rev-parse

Please note that an action have not to be _one_ git command, but you can assign a command sequence to an action, if the first command is git-rev-parse probably you have what you need.

I have to better explain some implemantation details. In case a multi line text is set as an action content, qgit wraps up the content in a temporary script and run the script as a whole. So you can use anything inside your action definition.

NOTE: this is possible because the input parameters are _always_
appended to the first line command only.
As example if the action 'test' is defined as:

echo echo 2 echo 3

When you run 'test' and insert '1' when prompted for input parameters the output will be: 1 2 3

Hope this helps.
    Marco
Previous: Jakub NarebskiNext: Junio C Hamano
Message 14 of 18 in “qgit idea: interface for cherry-picking”
  1. Jakub NarebskiJul 2, 2006
  2. Marco CostalbaJul 2, 2006
  3. Jakub NarebskiJul 2, 2006
  4. Marco CostalbaJul 2, 2006
  5. Jakub NarebskiJul 2, 2006
  6. Marco CostalbaJul 3, 2006
  7. Junio C HamanoJul 3, 2006
  8. Marco CostalbaJul 3, 2006
  9. Junio C HamanoJul 3, 2006
  10. Marco CostalbaJul 4, 2006
  11. Jakub NarebskiJul 4, 2006
  12. Marco CostalbaJul 4, 2006
  13. Jakub NarebskiJul 4, 2006
  14. Marco CostalbaJul 4, 2006
  15. Junio C HamanoJul 4, 2006
  16. Jakub NarebskiJul 4, 2006
  17. Marco CostalbaJul 4, 2006
  18. Marco CostalbaJul 4, 2006

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.