Skip to content

Add apply-pr alias #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

There are more than a few reasons for this:

1) The big repository made svn slow - it also makes Git slow (yes, its that big!)
1) The big repository made svn slow - it also makes Git slow (yes, it's that big!)

2) We have modules that could just stay untouched between releases, in big repo these had to be rebuilt, in splitup we can move to a build-when-needed approach.

Expand Down Expand Up @@ -138,7 +138,20 @@ We could actually remove these but we opted for keeping them in for two reasons:
1) It allow us to see which exact svn commit a change is from and can use that to look in the svn repo in case we want to explore for possible bad migration data.
2) svn allows empty commit messages, git does not - if we removed these lines we would have to readjust all the commits that has no message in the history.

# Applying pull-requests without using Github pull request button

Basically you just need to edit .gitconfig to read

[alias]
apply-pr = "!f() { curl $1.patch | git am --signoff; }; f"

Or you can use the git config alias command

git config --global alias.apply-pr "!f() { curl $1.patch | git am --signoff; }; f"

Then you can just run

git apply-pr https://github.com/someuser/somerepo/pull/id



Expand Down