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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e75c0d819dd93d2a04da7557818ab2384aa193938c10968ab5956860da1a927a
4
- data.tar.gz: abb92e652de1c72b0d6934d2264f0bd9f4552e34b3402abb0becec6aee36fa0b
3
+ metadata.gz: f55e7403a58f8a095f7d56a209d420a39bd9e80764aba046a3c5abe01a36e895
4
+ data.tar.gz: 470418a1906e8e3e75f9f7c0d76ed966f4db5b3484dd4fbcc260373ab5fd5c78
5
5
  SHA512:
6
- metadata.gz: 2ff31ac0ed8c09dc538efcd90f5509cae94b8ae7c606bc46c39146abf6d5754b63d99a8f83fe8605bab5a22ce9735a3d357935e02afd0461fabaf03f1c7d5fcf
7
- data.tar.gz: 546ac7c74275d81c877b0e22e9acdc926ff915d2a148300fb3b6d7a8398f5f2d3f35865fb3348048b57dbdaf0e2c4dcedcebe2a7435bb1a32cd77e565a84e46f
6
+ metadata.gz: f809fb74f7373c31e2cabf787c5aa3ef5e7664cb147662e4fba1bc114f1ef3f96924b0276a52c6a941876093acd590ae42ccb4634d9c23aa88525075a921f450
7
+ data.tar.gz: 33da4f97cf225aaeed97e09f354f87b3345c492fce43708526f09b4d29254d8eac5f43cac685a52920b2b03cfa19d7284ec6c26dacb7838734982d92ce993fd3
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ ------------------
2
+ 1.1.0 (2026-09-18)
3
+ ------------------
4
+
5
+ * Update to cli_class_tool 2.0.0
6
+ * Use new runXXX API
7
+
1
8
  ------------------
2
9
  1.0.0 (2026-09-09)
3
10
  ------------------
@@ -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", {}, false)
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", {}, false)
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", {}, false)
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", false)
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}", {}, false)
828
+ runGitInteractive("show #{commit}", catch_err: true)
829
829
  end
830
830
  end
831
831
 
@@ -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} 2> /dev/null", {}, false).chomp()
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.0.0
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-09 00:00:00.000000000 Z
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.16
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: []