threads / discuss / 28991

Feature requset: listing of current stash in git gui

Subject: Feature requset: listing of current stash in git gui

## tl;dr

7 messages between Nov 21, 2011 and Nov 23, 2011.

replies: 6people: 3as markdown or json

dexen deVries· Nov 21, 2011, 10:00 UTC · lore
Hi,

please consider listing modifications stored in git's stash somewhere in git gui window. Perhaps above the `Staged Changes' subframe. Format of the listing similar to output of `git stash list'. Available operations would be Pop, Apply, Save and Drop.

Regards,
-- 
dexen deVries

[[[↓][→]]]

``As my friend Jacob Gabrielson once put it, advocating Object-Oriented 
Programming is like advocating Pants-Oriented Clothing.''
 -- Steve Yegge, in
http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html
Stefan Näwe· Nov 21, 2011, 10:53 UTC · re: dexen deVries · lore

Re: Feature requset: listing of current stash in git gui

Am 21.11.2011 11:00, schrieb dexen deVries:
Show 7 quoted lines
> Hi,
> 
> 
> please consider listing modifications stored in git's stash somewhere in git 
> gui window. Perhaps above the `Staged Changes' subframe. Format of the listing 
> similar to output of `git stash list'. Available operations would be Pop, 
> Apply, Save and Drop.
You can simply put the following in your ~/.gitconfig:
[guitool "Stash/show"]
	cmd = git stash show -p
[guitool "Stash/list"]
	cmd = git stash list
[guitool "Stash/pop"]
	cmd = git stash pop
[guitool "Stash/drop"]
	cmd = git stash drop
	confirm = yes
That will give you a new sub-menu in the 'Tools' menu of git gui.
Regards,
  Stefan
-- 
----------------------------------------------------------------
/dev/random says: Dreams are free, but you get soaked on the connect time.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
dexen deVries· Nov 21, 2011, 12:41 UTC · re: Stefan Näwe · lore

Re: Feature requset: listing of current stash in git gui

On Monday 21 of November 2011 11:53:03 Stefan Näwe wrote:
Show 11 quoted lines
> You can simply put the following in your ~/.gitconfig:
> 
> [guitool "Stash/show"]
> 	cmd = git stash show -p
> [guitool "Stash/list"]
> 	cmd = git stash list
> [guitool "Stash/pop"]
> 	cmd = git stash pop
> [guitool "Stash/drop"]
> 	cmd = git stash drop
> 	confirm = yes

that's nice, but doesn't list visually the stashed changes. I'd rather have a listing similar to Unstanged Changes / Staged Changes, with ability to view line-by-line diff just like for Changes.

Regards,
-- 
dexen deVries

[[[↓][→]]]

``As my friend Jacob Gabrielson once put it, advocating Object-Oriented 
Programming is like advocating Pants-Oriented Clothing.''
 -- Steve Yegge, in
http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns.html
David Aguilar· Nov 22, 2011, 10:24 UTC · lore

Re: Feature requset: listing of current stash in git gui

On Nov 21, 2011, at 4:41 AM, dexen deVries <dexen.devries@gmail.com> wrote:
Show 16 quoted lines
> On Monday 21 of November 2011 11:53:03 Stefan Näwe wrote:
>> You can simply put the following in your ~/.gitconfig:
>>
>> [guitool "Stash/show"]
>>    cmd = git stash show -p
>> [guitool "Stash/list"]
>>    cmd = git stash list
>> [guitool "Stash/pop"]
>>    cmd = git stash pop
>> [guitool "Stash/drop"]
>>    cmd = git stash drop
>>    confirm = yes
>
> that's nice, but doesn't list visually the stashed changes. I'd rather have a
> listing similar to Unstanged Changes / Staged Changes, with ability to view
> line-by-line diff just like for Changes.
[blatant plug]
git-cola has this feature.
>
   http://git-cola.github.com/
Have fun,
-- 
            David
Stefan Näwe· Nov 22, 2011, 15:19 UTC · re: David Aguilar · lore

Re: Feature requset: listing of current stash in git gui

Am 22.11.2011 11:24, schrieb David Aguilar:
Show 25 quoted lines
> On Nov 21, 2011, at 4:41 AM, dexen deVries <dexen.devries@gmail.com> wrote:
> 
>> On Monday 21 of November 2011 11:53:03 Stefan Näwe wrote:
>>> You can simply put the following in your ~/.gitconfig:
>>>
>>> [guitool "Stash/show"]
>>>    cmd = git stash show -p
>>> [guitool "Stash/list"]
>>>    cmd = git stash list
>>> [guitool "Stash/pop"]
>>>    cmd = git stash pop
>>> [guitool "Stash/drop"]
>>>    cmd = git stash drop
>>>    confirm = yes
>>
>> that's nice, but doesn't list visually the stashed changes. I'd rather have a
>> listing similar to Unstanged Changes / Staged Changes, with ability to view
>> line-by-line diff just like for Changes.
> 
> [blatant plug]
> 
> git-cola has this feature.
>>
> 
>    http://git-cola.github.com/
Yeah, right. I totally forgot about git cola.

But I guess there's no way of starting only the stash view like the 'DAG' view, is there ?

Stefan
-- 
----------------------------------------------------------------
/dev/random says: This is a Tagline mirror><rorrim enilgaT a si sihT
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
David Aguilar· Nov 23, 2011, 11:20 UTC · re: Stefan Näwe · lore

Re: Feature requset: listing of current stash in git gui

On Tue, Nov 22, 2011 at 7:19 AM, Stefan Näwe <stefan.naewe@atlas-elektronik.com> wrote:

Show 11 quoted lines
> Am 22.11.2011 11:24, schrieb David Aguilar:
>>
>> git-cola has this feature.
>>>
>>
>>    http://git-cola.github.com/
>
> Yeah, right. I totally forgot about git cola.
>
> But I guess there's no way of starting only the stash view like the 'DAG'
> view, is there ?
That's a good idea.
https://github.com/git-cola/git-cola/commit/0b1bf59c0b4a455cc8a9149dcfcafb5bed3a19ab
    git cola stash
    git cola classic
    (and a few others)
    ...
-- 
    David
Stefan Näwe· Nov 23, 2011, 11:24 UTC · re: David Aguilar · lore

Re: Feature requset: listing of current stash in git gui

Am 23.11.2011 12:20, schrieb David Aguilar:
Show 22 quoted lines
> On Tue, Nov 22, 2011 at 7:19 AM, Stefan Näwe
> <stefan.naewe@atlas-elektronik.com> wrote:
>> Am 22.11.2011 11:24, schrieb David Aguilar:
>>>
>>> git-cola has this feature.
>>>>
>>>
>>>    http://git-cola.github.com/
>>
>> Yeah, right. I totally forgot about git cola.
>>
>> But I guess there's no way of starting only the stash view like the 'DAG'
>> view, is there ?
> 
> That's a good idea.
> 
> https://github.com/git-cola/git-cola/commit/0b1bf59c0b4a455cc8a9149dcfcafb5bed3a19ab
> 
>     git cola stash
>     git cola classic
>     (and a few others)
>     ...
Perfetto!
Stefan
-- 
----------------------------------------------------------------
/dev/random says: Thesaurus: ancient reptile with an excellent vocabulary.
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"

← back to recent threads