git-maintain 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +7 -0
- data/lib/git-maintain/branch.rb +5 -5
- data/lib/git-maintain/repo.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f55e7403a58f8a095f7d56a209d420a39bd9e80764aba046a3c5abe01a36e895
|
|
4
|
+
data.tar.gz: 470418a1906e8e3e75f9f7c0d76ed966f4db5b3484dd4fbcc260373ab5fd5c78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f809fb74f7373c31e2cabf787c5aa3ef5e7664cb147662e4fba1bc114f1ef3f96924b0276a52c6a941876093acd590ae42ccb4634d9c23aa88525075a921f450
|
|
7
|
+
data.tar.gz: 33da4f97cf225aaeed97e09f354f87b3345c492fce43708526f09b4d29254d8eac5f43cac685a52920b2b03cfa19d7284ec6c26dacb7838734982d92ce993fd3
|
data/CHANGELOG
CHANGED
data/lib/git-maintain/branch.rb
CHANGED
|
@@ -713,7 +713,7 @@ module GitMaintain
|
|
|
713
713
|
# @raise [CherryPickErrorException] If cherry-picking the commit (and its alternatives) fails
|
|
714
714
|
def pick_one(commit)
|
|
715
715
|
cpCmd="cherry-pick --strategy=recursive -Xpatience -x"
|
|
716
|
-
runGitInteractive("#{cpCmd} #{commit} &> /dev/null",
|
|
716
|
+
runGitInteractive("#{cpCmd} #{commit} &> /dev/null", catch_err: true)
|
|
717
717
|
return if $? == 0
|
|
718
718
|
|
|
719
719
|
if runGit("status -uno --porcelain | wc -l") == "0" then
|
|
@@ -725,7 +725,7 @@ module GitMaintain
|
|
|
725
725
|
# That didn't work? Let's try that with every variation of the commit
|
|
726
726
|
# in other stable trees.
|
|
727
727
|
@repo.find_alts(commit).each(){|alt_commit|
|
|
728
|
-
runGitInteractive("#{cpCmd} #{alt_commit} &> /dev/null",
|
|
728
|
+
runGitInteractive("#{cpCmd} #{alt_commit} &> /dev/null", catch_err: true)
|
|
729
729
|
if $? == 0 then
|
|
730
730
|
return
|
|
731
731
|
end
|
|
@@ -734,7 +734,7 @@ module GitMaintain
|
|
|
734
734
|
|
|
735
735
|
# Still no? Let's go back to the original commit and hand it off to
|
|
736
736
|
# the user.
|
|
737
|
-
runGitInteractive("#{cpCmd} #{commit} &> /dev/null",
|
|
737
|
+
runGitInteractive("#{cpCmd} #{commit} &> /dev/null", catch_err: true)
|
|
738
738
|
raise CherryPickErrorException.new("Failed to cherry pick commit #{commit}", commit)
|
|
739
739
|
end
|
|
740
740
|
|
|
@@ -747,7 +747,7 @@ module GitMaintain
|
|
|
747
747
|
def cp_fix(opts, commit)
|
|
748
748
|
runGitInteractive("diff")
|
|
749
749
|
log( :INFO, "Entering subshell to fix conflicts. Exit when done")
|
|
750
|
-
runSystem("PS1_WARNING='CP FIX' bash",
|
|
750
|
+
runSystem("PS1_WARNING='CP FIX' bash", catch_err: true)
|
|
751
751
|
rep = confirm(opts, "continue with scp",
|
|
752
752
|
ignore_default: true,
|
|
753
753
|
allowed_reps: ["y", "n", "s"],
|
|
@@ -825,7 +825,7 @@ module GitMaintain
|
|
|
825
825
|
add_blacklist(commit)
|
|
826
826
|
raise CPSkip.new(commit)
|
|
827
827
|
when "?"
|
|
828
|
-
runGitInteractive("show #{commit}",
|
|
828
|
+
runGitInteractive("show #{commit}", catch_err: true)
|
|
829
829
|
end
|
|
830
830
|
end
|
|
831
831
|
|
data/lib/git-maintain/repo.rb
CHANGED
|
@@ -152,7 +152,7 @@ module GitMaintain
|
|
|
152
152
|
# @return [String] Cached or fetched config value string
|
|
153
153
|
# @raise [RunError] If running git config fails unexpectedly
|
|
154
154
|
def getGitConfig(entry)
|
|
155
|
-
return @config_cache[entry] ||= runGit("config #{entry}
|
|
155
|
+
return @config_cache[entry] ||= runGit("config #{entry}", catch_err: true, silent_err: true).chomp()
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Spawn an interactive subshell (bash), wrapping error conditions into a GitMaintainError.
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-maintain
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nicolas Morey-Chaisemartin
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-09-
|
|
10
|
+
date: 2026-09-18 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: cli_class_tool
|
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
|
-
rubygems_version: 4.0.
|
|
85
|
+
rubygems_version: 4.0.20
|
|
86
86
|
specification_version: 4
|
|
87
87
|
summary: Your ultimate script for maintaining stable branches and releasing your project.
|
|
88
88
|
test_files: []
|