Skip to content

Commit

Permalink
fix git effort
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswalz committed Oct 12, 2020
1 parent adbfb23 commit 3185285
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions a.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 4 additions & 2 deletions cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
2 changes: 1 addition & 1 deletion gitextras/git-effort.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gitextras/git-summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 3185285

Please sign in to comment.