mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
fix: add --include-untracked
to stash push
for specific changes (#931)
This commit is contained in:
parent
92065dee12
commit
4f41f44a9f
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ namespace SourceGit.Commands
|
||||||
public bool Push(string message, List<Models.Change> changes, bool keepIndex)
|
public bool Push(string message, List<Models.Change> changes, bool keepIndex)
|
||||||
{
|
{
|
||||||
var builder = new StringBuilder();
|
var builder = new StringBuilder();
|
||||||
builder.Append("stash push ");
|
builder.Append("stash push --include-untracked ");
|
||||||
if (keepIndex)
|
if (keepIndex)
|
||||||
builder.Append("--keep-index ");
|
builder.Append("--keep-index ");
|
||||||
builder.Append("-m \"");
|
builder.Append("-m \"");
|
||||||
|
@ -47,7 +47,7 @@ namespace SourceGit.Commands
|
||||||
public bool Push(string message, string pathspecFromFile, bool keepIndex)
|
public bool Push(string message, string pathspecFromFile, bool keepIndex)
|
||||||
{
|
{
|
||||||
var builder = new StringBuilder();
|
var builder = new StringBuilder();
|
||||||
builder.Append("stash push --pathspec-from-file=\"");
|
builder.Append("stash push --include-untracked --pathspec-from-file=\"");
|
||||||
builder.Append(pathspecFromFile);
|
builder.Append(pathspecFromFile);
|
||||||
builder.Append("\" ");
|
builder.Append("\" ");
|
||||||
if (keepIndex)
|
if (keepIndex)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue