Skip to content

Commit

Permalink
Merge pull request #18 from chriswalz/fix-bit-info
Browse files Browse the repository at this point in the history
 fix git effort
  • Loading branch information
chriswalz authored Oct 12, 2020
2 parents adbfb23 + 596447a commit dbab04a
Show file tree
Hide file tree
Showing 4 changed files with 10 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
5 changes: 3 additions & 2 deletions cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ 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 ---")
fmt.Println("\nCommits | Files")
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 dbab04a

Please sign in to comment.