We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233ecf9 commit 605ed8aCopy full SHA for 605ed8a
git-recover
@@ -132,6 +132,7 @@ function find_unreachable() {
132
133
if [ $DO_FULL == 1 ]; then FULLNESS="--full"; fi
134
135
+ # shellcheck disable=SC2207
136
BLOBS=($(git fsck --unreachable --no-reflogs "${FULLNESS}" \
137
--no-progress 2>/dev/null | \
138
sed -E -ne 's/^unreachable blob |dangling blob //p'))
@@ -208,6 +209,7 @@ function timestamp_to_s {
208
209
210
function sort_by_timestamp {
211
# sort blobs in loose objects by their timestamp (packed blobs last)
212
213
BLOB_AND_TIMESTAMPS=($(for BLOB in "${BLOBS[@]}"; do
214
LOOSE="${BLOB::2}/${BLOB:2}"
215
TIME=$(file_time "$GIT_DIR/objects/$LOOSE" 2>/dev/null || true)
0 commit comments