Fixes T7344.
Currently, we use phutil_console_prompt(), which isn't a very good editor. Use the real $EDITOR instead.
100% of the logic here was also a gigantic mess. Clean it up.
Differential D11843
Use $EDITOR to prompt users when creating a new commit out of dirty working copy changes epriestley on Feb 21 2015, 12:38 AM. Authored by Tags None Referenced Files
Subscribers Tokens
Details Fixes T7344. 100% of the logic here was also a gigantic mess. Clean it up. Will update in a second with console output from this run.
Diff Detail
Event TimelineComment Actions Here's an example run of the new logic: When I answered "y" to the first prompt on a previous run (with no local commit), it popped $EDITOR properly. Comment Actions This might be a little hard to follow, but the old logic was like: do stuff for untracked files; do weird magic; do stuff for unstaged files; more weird magic; do stuff for uncommitted files; all weird magic conspires; New logic is more like: tell the user about all the problems; do weird magic
|