Email or username:

Password:

Forgot your password?
Aral Balkan

e.g., you’re building an app from source and you were at commit fc8c4883. You just pulled the latest changes and you want to know what’s changed since your last update:

git log --graph --decorate --pretty=oneline --abbrev-commit fc8c4883~1..HEAD

There you go, your nice, neat change list comprising commit messages awaits :)

(The key bit is the X~1..HEAD, everything else is just formatting.)

#git #changelist #tip #dev

5 comments | Expand all CWs
Ryuno-Ki

@aral
Would that include merge commits?

I _think_ there's a way to exclude them, too.

Anyway, nice command! Define it as alias :)

Aral Balkan

@RyunoKi In fish shell, I just made a function:

```fish
function git-changes-since
git log --graph --decorate --pretty=oneline --abbrev-commit $argv[1]~1..HEAD
end
```

So I can do:

git-changes-since <commit>

#git #changeList #tip #fish #fishShell

Ryuno-Ki

@aral
Way easier this way :)

flyingscorpio

Or this variant:
alias.chlog=log --no-merges --oneline --stat @{1}..

no need to know the commit, works after a pull.
@aral

Aral Balkan

@flyingscorpio Oh, neat, will try that out next time I’m by a computer :)

Go Up