Skip to content

Commit 2cb3ad9

Browse files
authored
Directories are expanded into their files in the workspace (#180)
Co-authored-by: Sarmishta Velury <[email protected]>
1 parent 6b519ba commit 2cb3ad9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
390390
var refName = $('#newBranchName').val()
391391

392392
var flag = 0;
393-
webui.git("status --porcelain", function(data) {
393+
webui.git("status -u --porcelain", function(data) {
394394
$.get("api/uncommitted", function (uncommitted) {
395395
var uncommittedItems = JSON.parse(uncommitted);
396396
var col = 1
@@ -463,7 +463,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
463463
var branchName = refName.split("/")[1];
464464

465465
var flag = 0;
466-
webui.git("status --porcelain", function(data) {
466+
webui.git("status -u --porcelain", function(data) {
467467
$.get("api/uncommitted", function (uncommitted) {
468468
var uncommittedItems = JSON.parse(uncommitted);
469469
var col = 1
@@ -2074,7 +2074,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
20742074
self.update = function() {
20752075
$(fileList).empty()
20762076
var col = type == "working-copy" ? 1 : 0;
2077-
webui.git("status --porcelain", function(data) {
2077+
webui.git("status -u --porcelain", function(data) {
20782078
$.get("api/uncommitted", function (uncommitted) {
20792079
var uncommittedItems = JSON.parse(uncommitted);
20802080
self.filesCount = 0;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
390390
var refName = $('#newBranchName').val()
391391

392392
var flag = 0;
393-
webui.git("status --porcelain", function(data) {
393+
webui.git("status -u --porcelain", function(data) {
394394
$.get("api/uncommitted", function (uncommitted) {
395395
var uncommittedItems = JSON.parse(uncommitted);
396396
var col = 1
@@ -463,7 +463,7 @@ webui.SideBarView = function(mainView, noEventHandlers) {
463463
var branchName = refName.split("/")[1];
464464

465465
var flag = 0;
466-
webui.git("status --porcelain", function(data) {
466+
webui.git("status -u --porcelain", function(data) {
467467
$.get("api/uncommitted", function (uncommitted) {
468468
var uncommittedItems = JSON.parse(uncommitted);
469469
var col = 1
@@ -2074,7 +2074,7 @@ webui.ChangedFilesView = function(workspaceView, type, label) {
20742074
self.update = function() {
20752075
$(fileList).empty()
20762076
var col = type == "working-copy" ? 1 : 0;
2077-
webui.git("status --porcelain", function(data) {
2077+
webui.git("status -u --porcelain", function(data) {
20782078
$.get("api/uncommitted", function (uncommitted) {
20792079
var uncommittedItems = JSON.parse(uncommitted);
20802080
self.filesCount = 0;

0 commit comments

Comments
 (0)