wxiaoguang
542cec98f8
Refactor merge/update git command calls ( #23366 )
...
Follow #22568
* Remove unnecessary ToTrustedCmdArgs calls
* the FAQ in #22678
* Quote: When using ToTrustedCmdArgs, the code will be very complex (see
the changes for examples). Then developers and reviewers can know that
something might be unreasonable.
* The `signArg` couldn't be empty, it's either `-S{keyID}` or
`--no-gpg-sign`.
* Use `signKeyID` instead, add comment "empty for no-sign, non-empty to
sign"
* 5-line code could be extracted to a common `NewGitCommandCommit()` to
handle the `signKeyID`, but I think it's not a must, current code is
clear enough.
2023-03-09 09:48:52 -06:00
..
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2023-03-07 15:07:35 -05:00
2023-03-02 13:32:21 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-09 11:51:02 +08:00
2023-02-09 11:51:02 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2023-03-09 09:48:52 -06:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-21 14:12:57 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-28 15:26:19 -06:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-22 14:21:46 -05:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2019-03-27 17:33:00 +08:00
2022-12-01 19:56:04 +08:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-12-27 09:15:35 +08:00
2023-02-06 10:23:17 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-03-02 13:32:21 +08:00
2023-03-02 13:32:21 +08:00
2023-03-02 13:32:21 +08:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-03-03 17:28:38 -05:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-12-27 21:12:49 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-03-02 13:32:21 +08:00
2022-11-27 18:20:29 +00:00
2023-03-02 13:32:21 +08:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2023-03-02 13:32:21 +08:00
2023-02-04 10:30:43 +08:00
2023-03-02 13:32:21 +08:00
2022-12-27 21:12:49 +08:00
2022-12-27 21:12:49 +08:00
2023-02-04 10:30:43 +08:00
2023-02-11 08:39:50 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-12-27 21:12:49 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2023-02-14 21:23:04 +00:00
2022-11-27 18:20:29 +00:00
2023-02-04 10:30:43 +08:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00
2022-11-27 18:20:29 +00:00