thisismydesign / autowow

Set of commands to [auto]mate [w]ay [o]f [w]orking
MIT License
4 stars 0 forks source link

Consider untracked files as uncommitted changes #27

Closed thisismydesign closed 4 years ago

thisismydesign commented 5 years ago

Edge case: untracked file clashes with a new file, therefore e.g. git pull fails.

Alternatively, we could git add and later git remove. This way the same command would likely fail at a later point (eg. at git stash pop for keep_changes. Keep in mind that in case we'd have to not git remove a file that has been added and is now tracked.

Overall not sure if it's worth it, perhaps it can be revisited as needed.

thisismydesign commented 4 years ago

Reopening, this is also an issue for greet signaling to remove repos with untracked files.

thisismydesign commented 4 years ago

It is actually already covered: https://github.com/thisismydesign/autowow/blob/f5cbeb0e428d978078ad01f858a1d41afb5dc8c8/lib/autowow/features/vcs.rb#L267