Skip to content

Commit

Permalink
Drop ref-recent in favor of refs-by-date
Browse files Browse the repository at this point in the history
  • Loading branch information
joelparkerhenderson committed May 26, 2022
1 parent 50d0de4 commit 6da9e07
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ Use graphviz:
* [git rbs](doc/git-rbs/) - Rebase skip i.e. restart the rebase process by skipping the current patch
* [git rebase-branch](doc/git-rebase-branch/) - Interactively rebase all the commits on the current branch
* [git rebase-recent](doc/git-rebase-recent/) - Rebase recent commits with interactive
* [git ref-recent](doc/git-ref-recent/) -
* [git refs-by-date](doc/git-refs-by-date/) - Show refs sorted by date for branches
* [git reincarnate](doc/git-reincarnate/) - Delete a branch then create it anew
* [git remote-ref](doc/git-remote-ref/) - TODO
Expand Down
1 change: 0 additions & 1 deletion doc/git-ref-recent/README.md

This file was deleted.

Empty file removed doc/git-ref-recent/index.md
Empty file.
2 changes: 1 addition & 1 deletion doc/git-refs-by-date/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Git alias:

```git
refs-by-date = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)'
refs-by-date = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) (objectname:short) %(contents:subject)'
```

Example:
Expand Down
1 change: 0 additions & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,6 @@ Use graphviz:
* [git rbs](git-rbs/) - Rebase skip i.e. restart the rebase process by skipping the current patch
* [git rebase-branch](git-rebase-branch/) - Interactively rebase all the commits on the current branch
* [git rebase-recent](git-rebase-recent/) - Rebase recent commits with interactive
* [git ref-recent](git-ref-recent/) -
* [git refs-by-date](git-refs-by-date/) - Show refs sorted by date for branches
* [git reincarnate](git-reincarnate/) - Delete a branch then create it anew
* [git remote-ref](git-remote-ref/) - TODO
Expand Down
8 changes: 3 additions & 5 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,6 @@
# Interactively rebase all the commits on the current branch
rebase-branch = "!f() { git rebase --interactive $(git merge-base $(git default-branch)) HEAD); }; f"

# Sort by date for branches; can be useful for spring cleaning
refs-by-date = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short)'

# Find all objects that aren't referenced by any other object (orphans).
# To help an orphan, we create a new branch with the orphan's commit hash,
# then merge it into our current branch:
Expand Down Expand Up @@ -975,9 +972,10 @@
tail +2; \
}; f"

### ref-* aliases ###
### Ref aliases ###

ref-recent = "!git for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) %(objectname:short) %(contents:subject)' refs/heads/"
# Sort by date for branches; can be useful for spring cleaning
refs-by-date = for-each-ref --sort=-committerdate --format='%(committerdate:short) %(refname:short) (objectname:short) %(contents:subject)'

### Lookup aliases ###

Expand Down

0 comments on commit 6da9e07

Please sign in to comment.