Skip to content

Commit d8b735a

Browse files
committed
stash in web UI includes untracked files
1 parent 3f092a7 commit d8b735a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

git-webui/release/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ webui.git = function(cmd, arg1, arg2, arg3, arg4) {
176176
location.reload();
177177
return false;
178178
}
179-
// here
180179
webui.showError(displayMessage);
181180
}
182181
} else {
@@ -2379,7 +2378,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
23792378
var combinedFiles = files.concat(rmFiles);
23802379

23812380
if(combinedFiles.length != 0){
2382-
webui.git("stash push -- " + combinedFiles, function(output){
2381+
webui.git("stash push --include-untracked -- " + combinedFiles, function(output){
23832382
webui.showSuccess(output);
23842383
workspaceView.update("stash");
23852384
});

git-webui/src/share/git-webui/webui/js/git-webui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
23782378
var combinedFiles = files.concat(rmFiles);
23792379

23802380
if(combinedFiles.length != 0){
2381-
webui.git("stash push -- " + combinedFiles, function(output){
2381+
webui.git("stash push --include-untracked -- " + combinedFiles, function(output){
23822382
webui.showSuccess(output);
23832383
workspaceView.update("stash");
23842384
});

0 commit comments

Comments
 (0)