-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
78 lines (51 loc) · 1.57 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
git-rebase-diff
===============
a tiny wrapper around git range-diff,
to make it easy to use after performing a rebase.
esp useful if encountered merge conflicts
& want to verify that nothing screwed up.
see also: https://github.com/kiprasmel/git-diff3c
setup
-----
```
git clone https://github.com/kiprasmel/git-rebase-diff.git
# or: git clone [email protected]:kiprasmel/git-rebase-diff.git
cd git-rebase-diff
cp git-rebase-diff /usr/local/bin/
git config --global init.defaultBranch=master # or whatever branch you use as default
```
usage
-----
expects that you:
- are checked out in the branch you rebased.
- have *not* pushed the branch to the remote yet.
```
git-rebase-diff
git-rebase-diff [-r|--remote origin] [-p|--parent-branch master] [-d|--debug]
git-rebase-diff [-r|--remote origin] [-p|--parent-branch master] [-d|--debug] -- [range-diff args]...
```
environment variables
---------------------
configure the defaults via:
- GIT_REBASE_DIFF_DEFAULT_REMOTE
- GIT_REBASE_DIFF_DEFAULT_PARENT
git config
----------
respects:
- init.defaultBranch
see also
--------
- man git-range-diff
- https://github.com/kiprasmel/git-diff3c
---
update
------
i've been experimenting with revision syntax.
there's some work in the `experiment' branch; not ready yet.
in the meantime, one can try:
- git range-diff @{1}...
- to get the range diff of HEAD vs last version of HEAD
- use `@{n}' to get HEAD vs `n'th-previous version of HEAD
- git range-diff @{u}...
- to get the range diff of HEAD vs remote HEAD
- use `@{u}@{n}' to get HEAD vs `n'th-previous version of remote HEAD