Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hacksaw: init as 1.0.4 #97891

Merged
merged 1 commit into from Sep 13, 2020
Merged

hacksaw: init as 1.0.4 #97891

merged 1 commit into from Sep 13, 2020

Conversation

TethysSvensson
Copy link
Contributor

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

pkgs/tools/misc/hacksaw/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/hacksaw/default.nix Outdated Show resolved Hide resolved
@jonringer
Copy link
Contributor

Please follow CONTRIBUTING.md and manual#submitting-changes-making-patches and squash the fix-up commits.

This can be done without git rebase -i by doing:

git reset HEAD~1                    # move fix-up commits into unstaged
git add -- pkgs/                    # move changes into staged
git commit --amend --no-edit        # add changes to previous commit
git push ... ... --force            # modify current PR branch

However, git rebase -i is a more powerful alternative, I created a small video demonstrating it's use here. A more indepth text tutorial can be found here

@TethysSvensson
Copy link
Contributor Author

Please follow CONTRIBUTING.md and manual#submitting-changes-making-patches and squash the fix-up commits.

This can be done without git rebase -i by doing:

git reset HEAD~1                    # move fix-up commits into unstaged
git add -- pkgs/                    # move changes into staged
git commit --amend --no-edit        # add changes to previous commit
git push ... ... --force            # modify current PR branch

However, git rebase -i is a more powerful alternative, I created a small video demonstrating it's use here. A more indepth text tutorial can be found here

Done.

I was not aware of which was the proper procedure for nixpkgs. Some projects prefer to keep the commits separate while reviewing and squashing them during the merge.

@jonringer
Copy link
Contributor

I was not aware of which was the proper procedure for nixpkgs. Some projects prefer to keep the commits separate while reviewing and squashing them during the merge.

In general, you can think of it as, "If there was a regression, can we use git bisect to pinpoint it without too much trouble?".

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Result of nixpkgs-review pr 97891 1

1 package built:
  • hacksaw

@jonringer jonringer merged commit 22d0213 into NixOS:master Sep 13, 2020
@TethysSvensson
Copy link
Contributor Author

I was not aware of which was the proper procedure for nixpkgs. Some projects prefer to keep the commits separate while reviewing and squashing them during the merge.

In general, you can think of it as, "If there was a regression, can we use git bisect to pinpoint it without too much trouble?".

I was referring to using the github feature to do the squash when you merge, which means that the commits can be kept separate while reviewing, but appearing as a single commit when pushed to master. This way git bisect will still work as expected.

@TethysSvensson TethysSvensson deleted the hacksaw branch September 13, 2020 16:48
@jonringer
Copy link
Contributor

ah, when the PR only has 1 commit, sure that can be used. But often PRs have many significant commits that shouldn't be squashed.

Also it puts the burden of git history of the committer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants