This repository has been archived on 2022-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
prezto/modules/git/functions/git-commit-lost

17 lines
267 B
Plaintext
Raw Normal View History

#
# Lists lost Git commits.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
git fsck 2> /dev/null \
| grep "^dangling commit" \
| awk '{print $3}' \
| git log \
--date-order \
--no-walk \
--stdin \
${git_log_format_oneline}