Do not use '-x' with git clean.
I am afraid that would surprise to many people since "removing untracked files" means removing the ones listed in the status buffer.
This commit is contained in:
parent
62d9f73aea
commit
9fc7465d61
1 changed files with 1 additions and 2 deletions
3
magit.el
3
magit.el
|
@ -2674,7 +2674,6 @@ Prefix arg means justify as well."
|
|||
(defun magit-clean ()
|
||||
(interactive)
|
||||
(if (yes-or-no-p "Remove all untracked files and directories? ")
|
||||
(magit-run "git" "clean" "-dxf")))
|
||||
|
||||
(magit-run "git" "clean" "-df")))
|
||||
|
||||
(provide 'magit)
|
||||
|
|
Loading…
Reference in a new issue