Bug 222848
Summary: | Add git-webkit revert <file-path> | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | bdakin, ggaren, jbedard, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=215862 | ||
Bug Depends on: | |||
Bug Blocks: | 239082 |
Ryosuke Niwa
It's really counterintuitive that we'd have to reset the file
and then checkout in order to revert local changes in Git.
We should add git-webkit revert <file-path> to emulate svn revert.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/75171248>
Jonathan Bedard
How would `git-webkit revert <file-path>` be different from `git checkout <file-path>`? `revert` is reserved for un-doing commits in git.
Ryosuke Niwa
(In reply to Jonathan Bedard from comment #2)
> How would `git-webkit revert <file-path>` be different from `git checkout
> <file-path>`? `revert` is reserved for un-doing commits in git.
It would be different in that it also unstaged commits. There is also difference in that when you're in a merge conflict, etc... this command can resolve the conflict as we picked theirs-full.
As we discussed in slack, we can call this "discard" instead.