Skip to content

Instantly share code, notes, and snippets.

@neclimdul
Last active December 10, 2015 23:58
Show Gist options
  • Save neclimdul/4512740 to your computer and use it in GitHub Desktop.
Save neclimdul/4512740 to your computer and use it in GitHub Desktop.
wapply git alias
$ 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"
@dawehner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment