-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitx dev stashes #239
base: master
Are you sure you want to change the base?
Gitx dev stashes #239
Conversation
As Objective-Git doesn't yet offer stash support use libgit2 right away. should be replaced by Objective-Git equivalent when available
add menu items for stash items: "Pop stash@..", "Apply", "View Diff" and "Drop" but only "View Diff" functional yet
Note: use of deprecated [PBGitRepository outputInWorkdirForArguments:…] should be replaced with objective-git equivalent once stash-support is available.
Therefore the old controls, e.g. "Amend" checkbox, "Sign-off" and "Commit" buttons, have been moved into a tab-less NSTabView. The tab switches to the stash controls when holding the Alt-Key down.
Note: use of deprecated [PBGitRepository outputInWorkdirForArguments:…] should be replaced with objective-git equivalent once stash-support is available.
- added IBOutlet for stashButton - added a trackedFilesController to easily get a count of tracked files
it looks great ! |
- "Stash Save ⌘Y" - "Stash Save - Keep Index ⌥⌘Y" (alternate) - "Stash Pop ⇧⌘Y"
I can test it out see if it works fine for me if you want, I will need a binary thought. For me the main use of the stashes list in GitX would be to see what I have in store more than acting on it via GitX, I still do most of my actions in a console. |
👍 |
Well I don't know ObjC and I haven't tested this patch, but I want this feature, so 👍 |
if (retValue) { | ||
NSString *title = [NSString stringWithFormat:@"Stash %@ failed!", command]; | ||
NSString *message = [NSString stringWithFormat:@"There was an error!"]; | ||
[self.windowController showErrorSheetTitle:title message:message arguments:arguments output:output]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rowanj I know showErrorSheet... is deprecated, but what's the proposed alternative?
@schmurfy and anyone else who wants to test this PR without having to build it them self here's a link to a binary build by myself: http://muhqu.de/builds/[email protected] |
Btw, I'm not sure what might be the best keyboard shortcuts for the menu items... I choose ⌘Y mostly because I feel "stash" in git it a bit like "yank" in vi, if you know what I mean. But If you guys have other ideas just let me know! |
@muhqu thanks for that. It seems to work well... |
Seems good here as well! 💯 |
since we can rebind any shortcut anyway thanks to mac os x I don't think the default one is that important. |
it seems to work well for me too (I am on 10.8.4) |
@muhqu I mostly deprecated the error sheet because it was really buggy after the ARC conversion; that should be fixed now. I think I never got around to un-deprecating it because it's not a particularly good UX design, but it's fine to use for now. |
Is there an ETA for this pull request to get merged? Stash support directly in GitX would greatly improve my workflow. |
same, and as far as I can tell the binary posted works fine. |
👍 me too.. ;-) version bump! ...version bump! ...version bump! ;-P |
Btw, eventhough I have this in my build, I don't get much used to it. I'm still using DTerm for |
I currently keep a Laullon build around for stashing & popping. I find it incredibly handy to browse the stashed diffs since I'm constantly switching contexts for hotfixes. Thanks for this PR! Looking forward to only having one version :-) |
n.b. the merged branch (issues/239) is currently missing a few XIB changes that conflicted |
this will be handy. 👏 |
any news about this issue? |
@pvinis looks like I need to rebase this feature branch before @rowanj eventually might feel the urge to merge it. While I implemented this feature, I never really got used to it when I was running my own builds of GitX-dev. When it comes to stashing and switching branches etc, I use DTerm (open-source context aware hud-style terminal) to invoke git commands. |
i often use stash and an easy way to make named stashed etc would be nice. i will check DTerm though. thanks |
it would be really nice to have this, it would be sad to let the work you did go to waste :) |
tried DTerm. looks like a very useful little app. the only problem is that i also use git bisect, and bisect has to be ran at the root of the repo.. now im sad again :p |
@pvinis without knowing much about
…then you can use |
Hey, anyone has updates about this PR ? |
...no. I haven't done any gitx development in a long time. Wondering if it even compiles with latest XCode... :-/ |
i use it daily, but i have gitup for stashes. On Τετ, Νοε 4, 2015 at 19:59, rowanj/gitx — |
FYI the stash support of this PR has actually been integrated into this very active fork: https://github.com/gitx/gitx 🎉 |
Support for stashes (see #14 )
Major Tasks:
Optional Todos: