Home Explore Blog Models CI



nixpkgs

1st chunk of `maintainers/scripts/auto-rebase/README.md`
fc35c2a79aa2e124bcebecd251696bf5e96a1a3ec1291db5000000010000021d
# Auto rebase script

The [`./run.sh` script](./run.sh) in this directory rebases the current branch onto a target branch, while automatically resolving merge conflicts caused by marked commits in [`.git-blame-ignore-revs`](../../../.git-blame-ignore-revs).
See the header comment of that file to understand how to mark commits.

This is convenient for resolving merge conflicts for pull requests after e.g. treewide reformats.

## Testing

To run the tests in the [test directory](./test):
```
$ cd test
$ nix-shell
nix-shell> ./run.sh
```

Title: Auto Rebase Script for Conflict Resolution
Summary
This document describes an auto rebase script (`./run.sh`) that rebases the current branch onto a target branch. It automatically resolves merge conflicts, particularly those caused by commits marked in `.git-blame-ignore-revs`, which is useful for situations like treewide reformats. Instructions for running tests using `nix-shell` are also provided.