Skip to content

Commit 82f87fa

Browse files
authored
Rename to git-instafix (#15)
git-fixup is taken by a bunch of other projects
2 parents 6de8ed3 + 15e20dc commit 82f87fa

File tree

9 files changed

+39
-45
lines changed

9 files changed

+39
-45
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ jobs:
243243
steps:
244244
- uses: actions/checkout@v4
245245
with:
246-
repository: "quodlibetor/homebrew-git-fixup"
246+
repository: "quodlibetor/homebrew-git-tools"
247247
token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
248248
# So we have access to the formula
249249
- name: Fetch local artifacts

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 0.2.0
2+
3+
* Rename to git-instafix because there are a bunch of existing projects named git-fixup
4+
15
# Version 0.1.9
26

37
* CI and doc improvements

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "git-fixup"
3-
version = "0.1.9"
2+
name = "git-instafix"
3+
version = "0.2.0"
44
authors = ["Brandon W Maister <[email protected]>"]
55
edition = "2021"
6-
default-run = "git-fixup"
6+
default-run = "git-instafix"
77
publish = false
8-
repository = "https://github.com/quodlibetor/git-fixup"
8+
repository = "https://github.com/quodlibetor/git-instafix"
99
description = """Apply staged git changes to an ancestor git commit.
1010
"""
1111

@@ -42,15 +42,15 @@ cargo-dist-version = "0.10.0"
4242
# CI backends to support
4343
ci = ["github"]
4444
# The installers to generate for each app
45-
installers = ["shell", "npm", "homebrew", "msi"]
45+
installers = ["shell", "homebrew", "msi"]
4646
# A GitHub repo to push Homebrew formulas to
47-
tap = "quodlibetor/homebrew-git-fixup"
47+
tap = "quodlibetor/homebrew-git-tools"
4848
# Target platforms to build apps for (Rust target-triple syntax)
49-
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl"]
49+
targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl", "x86_64-pc-windows-msvc"]
5050
# The archive format to use for windows builds (defaults .zip)
5151
windows-archive = ".tar.gz"
5252
# The archive format to use for non-windows builds (defaults .tar.xz)
53-
unix-archive = ".tar.gz"
53+
unix-archive = ".tar.xz"
5454
# Publish jobs to run in CI
5555
publish-jobs = ["homebrew"]
5656
publish-prerelease = true

README.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
# git fixup
1+
# git instafix
22

33
Quickly fix up an old commit using your currently-staged changes.
44

55
![usage](./static/full-workflow-simple.gif)
66

77
## Usage
88

9-
After installation, just run `git fixup` or `git squash` to perform the related
10-
actions.
9+
After installation, just run `git instafix` to commit your currently-staged
10+
changes to an older commit in your branch.
1111

12-
By default, `git fixup` checks for staged changes and offers to amend an old
12+
By default, `git instafix` checks for staged changes and offers to amend an old
1313
commit.
1414

1515
Given a repo that looks like:
1616

1717
![linear-repo](./static/00-initial-state.png)
1818

19-
Running `git fixup` will allow you to edit an old commit:
19+
Running `git instafix` will allow you to edit an old commit:
2020

2121
![linear-repo-fixup](./static/01-selector.gif)
2222

@@ -28,44 +28,41 @@ If you're using a pull-request workflow (e.g. github) you will often have repos
2828

2929
![full-repo](./static/20-initial-full-repo.png)
3030

31-
You can set `GIT_INSTAFIX_UPSTREAM` to a branch name and `git fixup` will only
31+
You can set `GIT_INSTAFIX_UPSTREAM` to a branch name and `git instafix` will only
3232
show changes between HEAD and the merge-base:
3333

3434
![full-repo-fixup](./static/21-with-upstream.gif)
3535

3636
In general this is just what you want, since you probably shouldn't be editing
3737
commits that other people are working off of.
3838

39-
After you select the commit to edit, `git fixup` will apply your staged changes
39+
After you select the commit to edit, `git instafix` will apply your staged changes
4040
to that commit without any further prompting or work from you.
4141

42-
`git-squash` is just a symlink to `git-fixup` installed by brew, but if you
43-
invoke it (either as `git-squash` or `git squash`) it will behave the same,
44-
asking you which change to amend, but after you have selected the commit to git
45-
will give you a chance to edit the commit message before changing the tree at
46-
that point.
42+
Adding the `--squash` flag will behave the same, but after you have selected the commit amend to
43+
git will give you a chance to edit the commit message before changing the tree at that point.
4744

4845
## Installation
4946

5047
If you're on macos or linux and using homebrew you should be able to do:
5148

52-
brew install quodlibetor/git-fixup/git-fixup
53-
49+
brew install quodlibetor/git-tools/git-instafix
50+
5451
You can also install from this repo with `cargo`:
5552

56-
cargo install --git https://github.com/quodlibetor/git-fixup
53+
cargo install --git https://github.com/quodlibetor/git-instafix
5754

5855
Otherwise, you will need to compile with Rust. Install rust, clone this repo,
5956
build, and then copy the binary into your bin dir:
6057

6158
curl https://sh.rustup.rs -sSf | sh
62-
git clone https://github.com/quodlibetor/git-fixup && cd git-fixup
59+
git clone https://github.com/quodlibetor/git-instafix && cd git-instafix
6360
cargo build --release
64-
cp target/release/git-fixup /usr/local/bin/git-fixup
61+
cp target/release/git-instafix /usr/local/bin/git-instafix
6562

6663
## License
6764

68-
git-fixup is licensed under either of
65+
git-instafix is licensed under either of
6966

7067
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
7168
http://www.apache.org/licenses/LICENSE-2.0)

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn do_rebase_inner(
150150
if rebase.operation_current() != Some(rebase.len() - 1) {
151151
branch
152152
.get_mut()
153-
.set_target(new_id, "git-fixup retarget historical branch")?;
153+
.set_target(new_id, "git-instafix retarget historical branch")?;
154154
}
155155
}
156156
}

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn main() {
6363
if env::args().next().unwrap().ends_with("squash") {
6464
args.squash = true
6565
}
66-
if let Err(e) = git_fixup::instafix(
66+
if let Err(e) = git_instafix::instafix(
6767
args.squash,
6868
args.max_commits,
6969
args.commit_message_pattern,

tests/basic.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,7 @@ fn git_inner(args: &[&str], tempdir: &assert_fs::TempDir) -> Command {
287287

288288
/// Get something that can get args added to it
289289
fn fixup(dir: &assert_fs::TempDir) -> Command {
290-
let mut c = Command::cargo_bin("git-fixup").unwrap();
290+
let mut c = Command::cargo_bin("git-instafix").unwrap();
291291
c.current_dir(&dir.path());
292292
c
293293
}
294-
295-
fn rebase(onto: &str, dir: &assert_fs::TempDir) -> Command {
296-
let mut c = Command::cargo_bin("git-rebase-with-intermediates").unwrap();
297-
c.current_dir(&dir.path());
298-
c.arg(onto);
299-
c
300-
}

wix/main.wxs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
<Product
6262
Id='*'
63-
Name='git-fixup'
63+
Name='git-instafix'
6464
UpgradeCode='F5B771EA-3725-4523-9EE3-06FA112A5573'
6565
Manufacturer='Brandon W Maister'
6666
Language='1033'
@@ -84,11 +84,11 @@
8484
DowngradeErrorMessage='A newer version of [ProductName] is already installed. Setup will now exit.'/>
8585

8686
<Media Id='1' Cabinet='media1.cab' EmbedCab='yes' DiskPrompt='CD-ROM #1'/>
87-
<Property Id='DiskPrompt' Value='git-fixup Installation'/>
87+
<Property Id='DiskPrompt' Value='git-instafix Installation'/>
8888

8989
<Directory Id='TARGETDIR' Name='SourceDir'>
9090
<Directory Id='$(var.PlatformProgramFilesFolder)' Name='PFiles'>
91-
<Directory Id='APPLICATIONFOLDER' Name='git-fixup'>
91+
<Directory Id='APPLICATIONFOLDER' Name='git-instafix'>
9292

9393
<!--
9494
Enabling the license sidecar file in the installer is a four step process:
@@ -124,9 +124,9 @@
124124
<Component Id='binary0' Guid='*'>
125125
<File
126126
Id='exe0'
127-
Name='git-fixup.exe'
127+
Name='git-instafix.exe'
128128
DiskId='1'
129-
Source='$(var.CargoTargetBinDir)\git-fixup.exe'
129+
Source='$(var.CargoTargetBinDir)\git-instafix.exe'
130130
KeyPath='yes'/>
131131
</Component>
132132
</Directory>
@@ -174,7 +174,7 @@
174174
<!--<Icon Id='ProductICO' SourceFile='wix\Product.ico'/>-->
175175
<!--<Property Id='ARPPRODUCTICON' Value='ProductICO' />-->
176176

177-
<Property Id='ARPHELPLINK' Value='https://github.com/quodlibetor/git-fixup'/>
177+
<Property Id='ARPHELPLINK' Value='https://github.com/quodlibetor/git-instafix'/>
178178

179179
<UI>
180180
<UIRef Id='WixUI_FeatureTree'/>

0 commit comments

Comments
 (0)