This repository was archived by the owner on Jan 14, 2026. It is now read-only.
Commit 4ea75b0
committed
refactor(git): improve cross-platform compatibility and simplify command execution
- use OS-specific path separator for .git directory checks
- redirect stderr appropriately for Windows and Unix in git commands
- replace io.popen with vim.fn.system for git command execution
- pass commit message via stdin instead of temporary file
- handle head equivalent for get_contributors on Windows using PowerShell
- improve error handling for git command execution1 parent df82b4e commit 4ea75b0
2 files changed
Lines changed: 26 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 229 | + | |
239 | 230 | | |
240 | 231 | | |
241 | | - | |
| 232 | + | |
242 | 233 | | |
243 | | - | |
| 234 | + | |
244 | 235 | | |
245 | 236 | | |
246 | | - | |
| 237 | + | |
247 | 238 | | |
248 | 239 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | 240 | | |
253 | 241 | | |
254 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
23 | 18 | | |
24 | 19 | | |
25 | 20 | | |
| |||
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 28 | + | |
| 29 | + | |
40 | 30 | | |
41 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
42 | 35 | | |
43 | 36 | | |
44 | 37 | | |
| |||
243 | 236 | | |
244 | 237 | | |
245 | 238 | | |
246 | | - | |
247 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
| |||
0 commit comments