diff options
author | Ori Bernstein <ori@eigenstate.org> | 2022-08-16 23:50:28 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2022-08-16 23:50:28 +0000 |
commit | d86a7ed412555192e2000a9a34b3372f380ec3d0 (patch) | |
tree | 3a6440f1f5731ea8ccd5b11469145ccf21f22f9b /sys/src/cmd/git/rebase | |
parent | 3839ad4d3c9b26b8a5d564d1d8f09490799e4cd7 (diff) |
git/rebase: allow rebase without a clean tree
Here, patch grows a dry run option (-n), which allows
git/import to bail out early if it would patch files
that are dirty in tree.
Once git/import refuses to patch dirty files, git/rebase
can skip checking if the whole tree is clean, which is
both convenient and much faster on large trees.
Diffstat (limited to 'sys/src/cmd/git/rebase')
-rw-r--r--[-rwxr-xr-x] | sys/src/cmd/git/rebase | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/cmd/git/rebase b/sys/src/cmd/git/rebase index 395f3e693..a2aef6c2f 100755..100644 --- a/sys/src/cmd/git/rebase +++ b/sys/src/cmd/git/rebase @@ -7,8 +7,6 @@ flagfmt='a:abort, r:resume, i:interactive'; args='onto' eval `''{aux/getflags $*} || exec aux/usage tmp=_rebase.working -if(! git/walk -q) - die dirty working tree if(~ $#abort 1){ if(! test -f .git/rebase.todo) die no rebase to abort |