Re: qgit idea: interface for cherry-picking
- From
- Marco 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