00f36f20e6
Small git subcommand that enables you to push a subset of (independently apply-able) commits from a local chain of commits to a remote ref, e.g. for review. Useful for a workflow where you work on a chain of commits and want to submit the ones that have been finished for review without rebasing the chain. Change-Id: I7717fe37867acdd826bc03a578104a0c3b2cbf71 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12900 Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
12 lines
255 B
Nix
12 lines
255 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.runCommandNoCC "git-only-push"
|
|
{
|
|
nativeBuildInputs = [ pkgs.buildPackages.shellcheck ];
|
|
buildInputs = [ pkgs.bash ];
|
|
src = ./git-only-push.sh;
|
|
}
|
|
''
|
|
shellcheck "$src"
|
|
install -Dm755 "$src" "$out/bin/git-only-push"
|
|
''
|