wxiaoguang
dcd9fc7ee8
Refactor git command arguments and make all arguments to be safe to be used ( #21535 )
...
Follow #21464
Make all git command arguments strictly safe. Most changes are one-to-one replacing, keep all existing logic.
2 years ago
wxiaoguang
d98c5db58f
alternative to PR "improve code quality" ( #21464 )
...
This PR doesn't require new git version, and can be backported easily.
Co-authored-by: 6543 <6543@obermui.de>
2 years ago
KN4CK3R
0e57ff7eee
Add generic set type ( #21408 )
...
This PR adds a generic set type to get rid of maps used as sets.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
wxiaoguang
124b072f0b
Remove `git.Command.Run` and `git.Command.RunInDir*` ( #19280 )
...
Follows #19266 , #8553 , Close #18553 , now there are only three `Run..(&RunOpts{})` functions.
* before: `stdout, err := RunInDir(path)`
* now: `stdout, _, err := RunStdString(&git.RunOpts{Dir:path})`
3 years ago
Martin Scholz
26718a785a
Change git.cmd to RunWithContext ( #18693 )
...
Change all `cmd...Pipeline` commands to `cmd.RunWithContext`.
#18553
Co-authored-by: Martin Scholz <martin.scholz@versasec.com>
3 years ago
6543
3043eb36bf
Delete old git.NewCommand() and use it as git.NewCommandContext() ( #18552 )
3 years ago
zeripath
01087e9eef
Make Requests Processes and create process hierarchy. Associate OpenRepository with context. ( #17125 )
...
This PR registers requests with the process manager and manages hierarchy within the processes.
Git repos are then associated with a context, (usually the request's context) - with sub commands using this context as their base context.
Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
luzpaz
e0296b6a6d
Fix various documentation, user-facing, and source comment typos ( #16367 )
...
* Fix various doc, user-facing, and source comment typos
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
3 years ago
a1012112796
27b8eff96b
support gitmailmap in GetCodeActivityStats() ( #15009 )
...
ref:
- https://git-scm.com/docs/gitmailmap
- https://git-scm.com/docs/git-log#Documentation/git-log.txt-emaNem
Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: zeripath <art27@cantab.net>
4 years ago
techknowlogick
9a17e2830b
refactor repo_stats to use os.pipe ( #11726 )
...
* refactor repo_stats to use os.pipe
* woops. missing reader.
* stdout not stderr, woops
* Fix copyright date and ensure that the stderr is collected
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Andrew Thornton <art27@cantab.net>
4 years ago
Lauris BH
81cfe243f9
Add top author stats to activity page ( #9615 )
5 years ago
Lauris BH
1fa9662946
Git statistics in Activity tab ( #4724 )
...
* Initial implementation for git statistics in Activity tab
* Create top user by commit count endpoint
* Add UI and update src-d/go-git dependency
* Add coloring
* Fix typo
* Move git activity stats data extraction to git module
* Fix message
* Add git code stats test
6 years ago