Last active
December 10, 2015 23:58
-
-
Save neclimdul/4512740 to your computer and use it in GitHub Desktop.
wapply git alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git wapply --index http://drupal.org/files/session-ph53_0.patch | |
$ » git st | |
## 8.x | |
M core/includes/bootstrap.inc | |
M core/lib/Drupal/Core/CoreBundle.php | |
A core/lib/Drupal/Core/Session/Handler/DatabaseSessionHandler.php | |
A core/lib/Drupal/Core/Session/Proxy/CookieOverrideProxy.php | |
A core/lib/Drupal/Core/Session/Session.php | |
A core/lib/Drupal/Core/Session/StaticSessionFactory.php | |
A core/lib/Drupal/Core/Session/Storage/DrupalSessionStorage.php | |
M core/modules/system/lib/Drupal/system/Tests/Session/SessionTest.php | |
$ cat ~/.gitconfig | |
[alias] | |
st = status -sb | |
wapply = "!f() { for i; do args=$url; url=$i; done; curl -s $url | git apply $args -; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just posted my version of that: https://gist.github.com/4528912 ... I'm not sure whether multiple URLs is something worth to support and maybe wget would also work