Skip to content

Commit

Permalink
feat(log): git log with one line per commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Oct 27, 2017
1 parent ceedb74 commit 111bc9b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,22 @@ Checkout a new branch. Shorthand for `git checkout -b <branch-name>`.
```bash
$ git cb test/my-proof-of-concept
# now on branch test/my-proof-of-concept
```

<hr>

#### `git l`

Show an abridged `git log` output, with one line per commit.

> Accepts all options that can be passed to [git-log](https://git-scm.com/docs/git-log).
```bash
$ git l
6b1768a 2017-08-09 (tag: v1.3.3) Merge pull request #9 from jlegrone/feature/re-enable-release [GitHub]
1b0b519 2017-08-09 chore(travis): install dev dependencies again in post_success hook [Jacob LeGrone]
4b5cb73 2017-08-09 Merge pull request #8 from jlegrone/feature/fix-missing-dep [GitHub]
e5695bc 2017-08-09 fix(install): update to working validate-git-version [Jacob LeGrone]
3fab789 2017-08-09 test(travis): install production dependencies only [Jacob LeGrone]
...
```
1 change: 1 addition & 0 deletions commitizen.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const scopes = [
'pushf',
'cleanup',
'cb',
'log',
'branch-name',
'develop-branch'
].map(name => ({ name }));
Expand Down
4 changes: 4 additions & 0 deletions src/jlegrone.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
# Usage: git cb <branch-name>
cb = checkout -b

# Show an abridged git log output, one line per commit
# Usage: git l
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short

# Get the current branch name (used in other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"

Expand Down

0 comments on commit 111bc9b

Please sign in to comment.