neeto-translate-cli 0.2.9 → 0.2.10
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aa22aafd84257f4fa8d4e00ccf6f334c28a3e392bc38d69f10084c56a4052110
|
|
4
|
+
data.tar.gz: 3675d04113ee53f2780901e5c997c5a7e1894d347eb6de34f82f0f3fac5f1175
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 179fa29d565045d79403d6a29439158232625c7b5f03539d3a1af57c9867fe25cee68be14ffd738cb9ef1584ab4c22fd5eda5a1e7a0e50f1c0d656112ffa34e3
|
|
7
|
+
data.tar.gz: 9e67cfa18e53493d644d3e82b0464cce9f2c89bbe9372e9ee986b960d916e1aafb1258111d2afc4baa64af9b4aad687fb1cd8cb19e17b375287539cecbdae5fb
|
|
@@ -35,7 +35,36 @@ module NeetoTranslateCli
|
|
|
35
35
|
private
|
|
36
36
|
|
|
37
37
|
def git_commit_id
|
|
38
|
-
|
|
38
|
+
puts "DEBUG: Current working directory: #{Dir.pwd}"
|
|
39
|
+
puts "DEBUG: Git repository root: #{`git rev-parse --show-toplevel`.strip}"
|
|
40
|
+
puts "DEBUG: Current branch: #{`git branch --show-current`.strip}"
|
|
41
|
+
puts "DEBUG: Recent commits:"
|
|
42
|
+
puts `git log --oneline -5`
|
|
43
|
+
puts "DEBUG: Searching for commits with '[neeto-translate]' in message..."
|
|
44
|
+
|
|
45
|
+
# Try different variations of the grep pattern
|
|
46
|
+
puts "DEBUG: Trying exact match:"
|
|
47
|
+
result1 = `git log --grep="[neeto-translate]" --fixed-strings -n 1 --pretty=format:"%H"`.strip
|
|
48
|
+
puts "DEBUG: Result 1 (exact): '#{result1}'"
|
|
49
|
+
|
|
50
|
+
puts "DEBUG: Trying without fixed-strings:"
|
|
51
|
+
result2 = `git log --grep="neeto-translate" -n 1 --pretty=format:"%H"`.strip
|
|
52
|
+
puts "DEBUG: Result 2 (without fixed-strings): '#{result2}'"
|
|
53
|
+
|
|
54
|
+
puts "DEBUG: Trying with case insensitive:"
|
|
55
|
+
result3 = `git log --grep="neeto-translate" -i -n 1 --pretty=format:"%H"`.strip
|
|
56
|
+
puts "DEBUG: Result 3 (case insensitive): '#{result3}'"
|
|
57
|
+
|
|
58
|
+
puts "DEBUG: All commits with 'neeto' in message:"
|
|
59
|
+
puts `git log --grep="neeto" --oneline`
|
|
60
|
+
|
|
61
|
+
puts "DEBUG: All commits with 'translate' in message:"
|
|
62
|
+
puts `git log --grep="translate" --oneline`
|
|
63
|
+
|
|
64
|
+
# Return the first non-empty result
|
|
65
|
+
final_result = result1.empty? ? (result2.empty? ? result3 : result2) : result1
|
|
66
|
+
puts "DEBUG: Final commit id: '#{final_result}'"
|
|
67
|
+
final_result
|
|
39
68
|
end
|
|
40
69
|
|
|
41
70
|
def find_updated_keys(commit_id)
|