diff --git a/a.MD b/a.MD index 56827aa..2e8c452 100644 --- a/a.MD +++ b/a.MD @@ -93,3 +93,8 @@ bash history git-effort failing bit release bump man page parsing + flag suggestions for all commands + + +git log --pretty=format:"* [%s](https://github.com/chriswalz/bit/commit/%H)" 09facd30..HEAD + +deleting tags from local and origin is painful \ No newline at end of file diff --git a/cmd/info.go b/cmd/info.go index f6746c1..1d0c1f9 100644 --- a/cmd/info.go +++ b/cmd/info.go @@ -21,8 +21,10 @@ var infoCmd = &cobra.Command{ fmt.Println("--- SUMMARY ---") RunInTerminalWithColor("/bin/sh", []string{`-c`, gitextras.GitSummary}) - fmt.Println("--- EFFORT ---") - RunInTerminalWithColor("/bin/sh", []string{`-c`, gitextras.GitEffort}) + fmt.Println("\n--- EFFORT ---\n") + fmt.Println("Commits | Files") + // git log --pretty=format: --name-only | sort | uniq -c | sort -rg | awk 'NR > 1 { print }' | head -15 + RunInTerminalWithColor("/bin/sh", []string{`-c`, `git log --pretty=format: --name-only | sort | uniq -c | sort -rg | awk 'NR > 1 { print }' | head -15`}) }, //Args: cobra.MaximumNArgs(1), } diff --git a/gitextras/git-effort.go b/gitextras/git-effort.go index fda54e4..eb5d342 100644 --- a/gitextras/git-effort.go +++ b/gitextras/git-effort.go @@ -3,7 +3,7 @@ package gitextras // GitEffort is the git-effort bash script from git-extras const GitEffort = `#!/usr/bin/env bash -tmp=$(git_extra_mktemp) +tmp=bittmpbittmp above=0 # if the output won't be printed to tty, disable the color test -t 1 && to_tty=true diff --git a/gitextras/git-summary.go b/gitextras/git-summary.go index fa34b3c..9bafe92 100644 --- a/gitextras/git-summary.go +++ b/gitextras/git-summary.go @@ -2,7 +2,7 @@ package gitextras // GitSummary is the git-summary bash script from git-extras const GitSummary = `#!/usr/bin/env bash -cd "$(git root)" || { echo "Can't cd to top level directory";exit 1; } +# cd "$(git root)" || { echo "Can't cd to top level directory";exit 1; } SUMMARY_BY_LINE= DEDUP_BY_EMAIL=