Created
February 14, 2020 17:37
-
-
Save yanick/2610ff333a4b60dde0d4fc12655d3448 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use 5.30.0; | |
use List::MoreUtils qw/ first_index /; | |
my $index = first_index { $_ eq '--' } @ARGV; | |
$index = 0 if $index== -1; | |
push @ARGV, '--message', join " ", grep { $_ ne '--' } splice @ARGV, $index; | |
exec 'git', 'commit', @ARGV; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment