| Summary: | [git-webkit] Autostash when pulling | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | 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=222847 | ||
|
Description
Ryosuke Niwa
2022-01-29 12:49:13 PST
The implementation that first came to my mind would be controversial because it wouldn't work well from a branch, but turns out that `git pull` has an `--autostash` option, which should do what you're asking. (In reply to Jonathan Bedard from comment #1) > The implementation that first came to my mind would be controversial because > it wouldn't work well from a branch, but turns out that `git pull` has an > `--autostash` option, which should do what you're asking. oh, that's neat. so that'll stash, pull, then stash apply? (In reply to Ryosuke Niwa from comment #2) > (In reply to Jonathan Bedard from comment #1) > > The implementation that first came to my mind would be controversial because > > it wouldn't work well from a branch, but turns out that `git pull` has an > > `--autostash` option, which should do what you're asking. > > oh, that's neat. so that'll stash, pull, then stash apply? Looks like it creates a temporary stash commit to be compatible with --rebase, but basically yes. Pull request: https://github.com/WebKit/WebKit/pull/113 Landed 246972@main (r289386) |