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
{{ message }}
Repository navigation
use stageFiles to stage untracked files for stashing #8345
epic:stashingTracking label for work related to the stashing flowtech-debtIssues and pull requests related to addressing technical debt or improving the codebase
And I decided not to use the stageFiles method in update-index.ts because it does a lot of unnecessary stuff, including multiple git update-index calls.
One of the reasons we use update-index instead of add in the app is because update-index lets us pass the paths to add/remove/etc over stdin as opposed to add which only lets us pass them as command line arguments. On Windows there's a hard cap for the combined length of command line arguments (see for example #1668) which we've been bitten by a number of times in the past leading to us doing our very best to avoid passing paths and such as command line args.
I think we can merge this without making that change given that we're close to the release but if we end up doing a beta release on Monday it would be swell to have this leverage update-index instead. I think we could just export the updateIndex method from update-index.ts and leverage that here if going through stageFiles feels too heavy-handed.
epic:stashingTracking label for work related to the stashing flowtech-debtIssues and pull requests related to addressing technical debt or improving the codebase
Activity