3 ms·
Not sure how necessary this is - interactive adding (`git add -i`) does all this much more elegantly.
by yuvadam 15y ago
Not sure how necessary this is - interactive adding (`git add -i`) does all this much more elegantly.
- Argorak 15y agogit add -p Is also a nice alternative. Sadly, it doesn't allow you to revert an add files like darcs does.
- bostonvaulter2 15y agoNot sure exactly what you mean but you should be aware of checkout -p and reset -p
- Argorak 15y agoClose, but not truly the same. In interactive mode, darcs hands you every change it can find and asks you what to do with it (including reverting the change). So, if i added a file using `touch`, deleted one using `rm` (but not `git rm`), added a debug statement to a file and a change in another, the workflow would be the following: * Add file foo: Ynr? Y * Remove file bar: Ynr? n * Add debug statement? r #revert, I don't need it anyways * Add change xyz? n # I want this in another commit Its a real handy way to iterate over _all_ changes in your repos that it finds. I used it heavily to review all my changes before committing them as multiple patches.
- rue 15y agoYes, and in one step rather than the two provided by this plugin. This smells a bit like someone not knowing their tools.