id: 1 unit: func main() file: cmd/git-sync/main.go start line: 244 end line: 566 size: 271 LOC McCabe index: 72 number of parameters: 0 id: 2 unit: func addWorktreeAndSwap() file: cmd/git-sync/main.go start line: 713 end line: 863 size: 107 LOC McCabe index: 26 number of parameters: 8 id: 3 unit: func cloneRepo() file: cmd/git-sync/main.go start line: 865 end line: 934 size: 58 LOC McCabe index: 13 number of parameters: 6 id: 4 unit: func callGitAskPassURL() file: cmd/git-sync/main.go start line: 1115 end line: 1167 size: 49 LOC McCabe index: 11 number of parameters: 2 id: 5 unit: func parseGitConfigs() file: cmd/git-sync/main.go start line: 1190 end line: 1244 size: 46 LOC McCabe index: 10 number of parameters: 1 id: 6 unit: func syncRepo() file: cmd/git-sync/main.go start line: 979 end line: 1021 size: 37 LOC McCabe index: 9 number of parameters: 9 id: 7 unit: func() file: pkg/logging/logging.go start line: 43 end line: 75 size: 33 LOC McCabe index: 6 number of parameters: 1 id: 8 unit: func() file: pkg/logging/logging.go start line: 100 end line: 132 size: 31 LOC McCabe index: 8 number of parameters: 1 id: 9 unit: func runInit() file: pkg/pid1/pid1.go start line: 50 end line: 76 size: 25 LOC McCabe index: 8 number of parameters: 1 id: 10 unit: func updateSymlink() file: cmd/git-sync/main.go start line: 647 end line: 682 size: 24 LOC McCabe index: 7 number of parameters: 4 id: 11 unit: func() file: pkg/cmd/cmd.go start line: 46 end line: 72 size: 24 LOC McCabe index: 4 number of parameters: 1 id: 12 unit: func setupGitSSH() file: cmd/git-sync/main.go start line: 1065 end line: 1092 size: 22 LOC McCabe index: 5 number of parameters: 1 id: 13 unit: func parseGitConfigQVal() file: cmd/git-sync/main.go start line: 1264 end line: 1289 size: 22 LOC McCabe index: 7 number of parameters: 1 id: 14 unit: func() file: pkg/hook/hook.go start line: 120 end line: 150 size: 22 LOC McCabe index: 5 number of parameters: 1 id: 15 unit: func addUser() file: cmd/git-sync/main.go start line: 619 end line: 642 size: 21 LOC McCabe index: 5 number of parameters: 0 id: 16 unit: func() file: pkg/hook/webhook.go start line: 60 end line: 84 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 17 unit: func parseGitConfigVal() file: cmd/git-sync/main.go start line: 1291 end line: 1311 size: 19 LOC McCabe index: 5 number of parameters: 2 id: 18 unit: func getRevs() file: cmd/git-sync/main.go start line: 1024 end line: 1046 size: 17 LOC McCabe index: 4 number of parameters: 4 id: 19 unit: func removeDirContents() file: cmd/git-sync/main.go start line: 568 end line: 585 size: 16 LOC McCabe index: 5 number of parameters: 2 id: 20 unit: func sigchld() file: pkg/pid1/pid1.go start line: 80 end line: 99 size: 16 LOC McCabe index: 5 number of parameters: 1 id: 21 unit: func revIsHash() file: cmd/git-sync/main.go start line: 955 end line: 975 size: 15 LOC McCabe index: 4 number of parameters: 3 id: 22 unit: func unescape() file: cmd/git-sync/main.go start line: 1314 end line: 1328 size: 15 LOC McCabe index: 5 number of parameters: 1 id: 23 unit: func ReRun() file: pkg/pid1/pid1.go start line: 32 end line: 45 size: 14 LOC McCabe index: 3 number of parameters: 0 id: 24 unit: func setupGitAuth() file: cmd/git-sync/main.go start line: 1048 end line: 1063 size: 13 LOC McCabe index: 3 number of parameters: 4 id: 25 unit: func setupExtraGitConfigs() file: cmd/git-sync/main.go start line: 1169 end line: 1183 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 26 unit: func parseGitConfigKey() file: cmd/git-sync/main.go start line: 1246 end line: 1262 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 27 unit: func cmdForLog() file: pkg/cmd/cmd.go start line: 74 end line: 86 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 28 unit: func setupGitCookieFile() file: cmd/git-sync/main.go start line: 1094 end line: 1109 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 29 unit: func() file: pkg/logging/logging.go start line: 86 end line: 97 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 30 unit: func envInt() file: cmd/git-sync/main.go start line: 199 end line: 209 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 31 unit: func envFloat() file: cmd/git-sync/main.go start line: 211 end line: 221 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 32 unit: func envDuration() file: cmd/git-sync/main.go start line: 223 end line: 233 size: 11 LOC McCabe index: 3 number of parameters: 2 id: 33 unit: func envBool() file: cmd/git-sync/main.go start line: 187 end line: 197 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 34 unit: func NewExechook() file: pkg/hook/exechook.go start line: 45 end line: 54 size: 10 LOC McCabe index: 1 number of parameters: 6 id: 35 unit: func() file: pkg/hook/hook.go start line: 173 end line: 186 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 36 unit: func handleError() file: cmd/git-sync/main.go start line: 607 end line: 615 size: 9 LOC McCabe index: 2 number of parameters: 3 id: 37 unit: func cleanupWorkTree() file: cmd/git-sync/main.go start line: 701 end line: 710 size: 9 LOC McCabe index: 3 number of parameters: 3 id: 38 unit: func NewWebhook() file: pkg/hook/webhook.go start line: 44 end line: 52 size: 9 LOC McCabe index: 1 number of parameters: 5 id: 39 unit: func remoteHashForRef() file: cmd/git-sync/main.go start line: 946 end line: 953 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 40 unit: func() file: pkg/hook/exechook.go start line: 62 end line: 71 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 41 unit: func setFlagDefaults() file: cmd/git-sync/main.go start line: 235 end line: 242 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 42 unit: func localHashForRev() file: cmd/git-sync/main.go start line: 937 end line: 943 size: 7 LOC McCabe index: 2 number of parameters: 3 id: 43 unit: func() file: pkg/hook/hook.go start line: 78 end line: 88 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 44 unit: func NewHookRunner() file: pkg/hook/hook.go start line: 91 end line: 97 size: 7 LOC McCabe index: 2 number of parameters: 5 id: 45 unit: func() file: pkg/hook/hook.go start line: 161 end line: 167 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 46 unit: func envString() file: cmd/git-sync/main.go start line: 180 end line: 185 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 47 unit: func sleepForever() file: cmd/git-sync/main.go start line: 598 end line: 603 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 48 unit: func() file: pkg/logging/logging.go start line: 78 end line: 83 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 49 unit: func init() file: cmd/git-sync/main.go start line: 174 end line: 178 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 50 unit: func getRepoReady() file: cmd/git-sync/main.go start line: 688 end line: 692 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 51 unit: func setRepoReady() file: cmd/git-sync/main.go start line: 694 end line: 698 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 52 unit: func NewHookData() file: pkg/hook/hook.go start line: 56 end line: 60 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 53 unit: func() file: pkg/hook/hook.go start line: 66 end line: 70 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 54 unit: func() file: pkg/hook/hook.go start line: 72 end line: 76 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: func updateSyncMetrics() file: cmd/git-sync/main.go start line: 587 end line: 590 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 56 unit: func waitTime() file: cmd/git-sync/main.go start line: 592 end line: 594 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 57 unit: func NewRunner() file: pkg/cmd/cmd.go start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 58 unit: func() file: pkg/cmd/cmd.go start line: 41 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: func() file: pkg/hook/exechook.go start line: 57 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 60 unit: func init() file: pkg/hook/hook.go start line: 37 end line: 39 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 61 unit: func() file: pkg/hook/hook.go start line: 62 end line: 64 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: func() file: pkg/hook/hook.go start line: 115 end line: 117 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 63 unit: func updateHookRunCountMetric() file: pkg/hook/hook.go start line: 152 end line: 154 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 64 unit: func() file: pkg/hook/webhook.go start line: 55 end line: 57 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 65 unit: func New() file: pkg/logging/logging.go start line: 38 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 2