You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a system which allows the user to stash changes and pop changes. git stash is a command which allows users to "stash" any uncommited changes on their current branch, so that they can check out to different branches or do other operations on the current branch. More information on git stash
The top bar of each tab should have a "Stash" and a "Pop" button. "Stash" will stash the current changes and "Pop" will apply the previously stashed changes onto the current directory.
When these buttons are pressed, there should be no pop-up windows unless there has been an error. Be aware that the current AlertBuilder system is broken, but please write code assuming it will be fixed: don't expect alerts to display correctly for now.
To implement stashing and popping, you should use JGit's StashCreateCommand and StashApplyCommand respectively. You can find the documentation for both of these commands here: https://archive.eclipse.org/jgit/docs/jgit-2.0.0.201206130900-r/apidocs/org/eclipse/jgit/api/StashCreateCommand.html https://archive.eclipse.org/jgit/docs/jgit-2.3.1.201302201838-r/apidocs/org/eclipse/jgit/api/StashApplyCommad.html
The Create and Apply principles aren't as simple as Stash and Pop, but your implementation will basically boil down to calling both commands without actually setting any parameters on them.
Recommended reading for this issue is guides on stashing and popping, to get a better idea of the purpose and general use of this Git feature. One such guide is here: https://opensource.com/article/21/4/git-stash
The text was updated successfully, but these errors were encountered:
Implement a system which allows the user to stash changes and pop changes.
git stash
is a command which allows users to "stash" any uncommited changes on their current branch, so that they can check out to different branches or do other operations on the current branch.More information on git stash
The top bar of each tab should have a "Stash" and a "Pop" button. "Stash" will stash the current changes and "Pop" will apply the previously stashed changes onto the current directory.
When these buttons are pressed, there should be no pop-up windows unless there has been an error. Be aware that the current AlertBuilder system is broken, but please write code assuming it will be fixed: don't expect alerts to display correctly for now.
To implement stashing and popping, you should use JGit's
StashCreateCommand
andStashApplyCommand
respectively. You can find the documentation for both of these commands here:https://archive.eclipse.org/jgit/docs/jgit-2.0.0.201206130900-r/apidocs/org/eclipse/jgit/api/StashCreateCommand.html
https://archive.eclipse.org/jgit/docs/jgit-2.3.1.201302201838-r/apidocs/org/eclipse/jgit/api/StashApplyCommad.html
The Create and Apply principles aren't as simple as Stash and Pop, but your implementation will basically boil down to calling both commands without actually setting any parameters on them.
Recommended reading for this issue is guides on stashing and popping, to get a better idea of the purpose and general use of this Git feature. One such guide is here: https://opensource.com/article/21/4/git-stash
The text was updated successfully, but these errors were encountered: