Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: qgit idea: interface for cherry-picking

From: Marco Costalba <hidden>
Date: 2016-06-15 22:42:32

On 7/4/06, Jakub Narebski [off-list ref] wrote:
Marco Costalba wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help