From 248254dab53fb13a4e9415bcb033b53702ecf814 Mon Sep 17 00:00:00 2001 From: Marcello Lamonaca Date: Fri, 8 Sep 2023 09:52:05 +0200 Subject: [PATCH] feat(git): add `git log` range syntax --- docs/tools/git/git.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/tools/git/git.md b/docs/tools/git/git.md index 1496fb5..5f61e1a 100644 --- a/docs/tools/git/git.md +++ b/docs/tools/git/git.md @@ -167,6 +167,13 @@ def load_reference(name_or_id): `git log --follow `: list version history fo file, including renames `git log --all --graph --decorate`: visualizes history as a DAG `git log --oneline`: compact log +`git log `: Include commits that are reachable from `` +`git log ^`: Exclude commits that are reachable from `` +`git log ..`: Include commits that are reachable from `` but exclude those that are reachable from ``. +When either `` or `` is omitted, it defaults to HEAD. +`git log ...`: Include commits that are reachable from either `` or `` but exclude those that are reachable from both. When either `` or `` is omitted, it defaults to HEAD. +`git log ^@`: Include anything reachable from `` parents but not the commit itself + `git shortlog`: list commits by author `git reflog`: show record of when the tips of branches and other references were updated in the local repository