Make git-pull a builtin
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 28 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | pull: implement fetch + mergeMakefile builtin.h builtin/ +15 more | +495 | 1 reply | |
| 2/14 | pull: pass verbosity, --progress flags to fetch and mergebuiltin/ t/ | +64 | 4 replies | |
| 3/14 | pull: pass git-merge's options to git-mergebuiltin/ t/ t/ +4 more | +100 | 0 replies | |
| 4/14 | pull: pass git-fetch's options to git-fetchbuiltin/ t/ t/ +1 more | +107 | 0 replies | |
| 5/14 | pull: error on no merge candidatesbuiltin/ t/ | +137 | 1 reply | |
| 6/14 | pull: support pull.ff configbuiltin/ t/ | +27 | 2 replies | |
| 7/14 | pull: check if in unresolved merge stateadvice.c advice.h builtin/ +1 more | +19 | 1 reply | |
| 8/14 | pull: fast-forward working tree if head is updatedbuiltin/ t/ | +32 | 1 reply | |
| 9/14 | pull: implement pulling into an unborn branchbuiltin/ t/ | +30 | 0 replies | |
| 10/14 | pull: set reflog messagebuiltin/ t/ | +25 | 3 replies | |
| 11/14 | pull: teach git pull about --rebasebuiltin/ t/ t/ +1 more | +241 | 4 replies | |
| 12/14 | pull: configure --rebase via branch.<name>.rebase or pull.rebasebuiltin/ t/ | +41 | 1 reply | |
| 13/14 | pull --rebase: exit early when the working directory is dirtybuiltin/ t/ | +79 | 0 replies | |
| 14/14 | pull --rebase: error on no merge candidate casesbuiltin/ | +25 | 6 replies |
Reviews trailers per patch
None of the 14 patches has a Reviewed-by or Acked-by.
| Patch | Stephen Robin |
|---|---|
| 1/14 | |
| 2/14 | |
| 3/14 | |
| 4/14 | |
| 5/14 | |
| 6/14 | |
| 7/14 | |
| 8/14 | |
| 9/14 | Helped-by |
| 10/14 | |
| 11/14 | |
| 12/14 | |
| 13/14 | |
| 14/14 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/14] Make git-pull a builtin
This series directly depends on the changes made in jc/merge and pt/pull-tests. The commit messages assume that the behavioral changes proposed in pt/pull-log-n, pt/pull-tags-error-diag, pt/pull-ff-vs-merge-ff, and [1] have been introduced.
git-pull is a commonly executed command to check for new changes in the upstream repository and, if there are, fetch and integrate them into the current branch. Currently it is implemented by the shell script git-pull.sh. However, compared to C, shell scripts have certain deficiencies:
1. Usually have to rely on spawning a lot of processes, which can be slow on systems that do not implement copy-on-write semantics.
2. They introduce a lot of dependencies, especially on non-POSIX systems.
3. They cannot take advantage of git's C API and internal caches.
This series rewrites git-pull.sh into a C builtin, thus improving its performance and portability. It is part of my GSoC project to rewrite git-pull and git-am into builtins[2].
[1] http://thread.gmane.org/gmane.comp.version-control.git/269249
[2] https://gist.github.com/pyokagan/1b7b0d1f4dab6ba3cef1
Paul Tan (14):
pull: implement fetch + merge
pull: pass verbosity, --progress flags to fetch and merge
pull: pass git-merge's options to git-merge
pull: pass git-fetch's options to git-fetch
pull: error on no merge candidates
pull: support pull.ff config
pull: check if in unresolved merge state
pull: fast-forward working tree if head is updated
pull: implement pulling into an unborn branch
pull: set reflog message
pull: teach git pull about --rebase
pull: configure --rebase via branch.<name>.rebase or pull.rebase pull --rebase: exit early when the working directory is dirty pull --rebase: error on no merge candidate cases
Makefile | 2 +- advice.c | 8 + advice.h | 1 + builtin.h | 1 + builtin/pull.c | 919 +++++++++++++++++++++++++++++++++++++++++++ contrib/examples/git-pull.sh | 339 ++++++++++++++++ git-pull.sh | 339 ---------------- git.c | 1 + 8 files changed, 1270 insertions(+), 340 deletions(-) create mode 100644 builtin/pull.c create mode 100755 contrib/examples/git-pull.sh delete mode 100755 git-pull.sh
Signature · 1 line
2.1.4