From: Marco Costalba Date: Tue, 04 Jul 2006 18:38:46 GMT Subject: Re: qgit idea: interface for cherry-picking Message-ID: In-Reply-To: On 7/4/06, Jakub Narebski wrote: > 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