Skip to content

Log hashes of local branches when deleting them#5441

Merged
stefanhaller merged 3 commits intomasterfrom
log-hash-when-deleting-branches
Apr 6, 2026
Merged

Log hashes of local branches when deleting them#5441
stefanhaller merged 3 commits intomasterfrom
log-hash-when-deleting-branches

Conversation

@stefanhaller
Copy link
Copy Markdown
Collaborator

This makes it easier to recover them if they were deleted accidentally.

We only do this for local branches for now, we don't bother for remote branches; it would be trickier there, because the branch on the server might not actually point to the same hash as our local remote tracking branch does.

Fixes #2468.

This was forgotten in #4850.
This makes it easier to recover them if they were deleted accidentally.

We only do this for local branches for now, we don't bother for remote branches;
it would be trickier there, because the branch on the server might not actually
point to the same hash as our local remote tracking branch does.
@stefanhaller stefanhaller force-pushed the log-hash-when-deleting-branches branch from 8ccdfb8 to e4309f1 Compare April 6, 2026 17:06
@stefanhaller stefanhaller enabled auto-merge April 6, 2026 17:06
@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 6, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage 100.00% diff coverage

Metric Results
Coverage variation Report missing for 4c2c0ce1
Diff coverage 100.00% diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4c2c0ce) Report Missing Report Missing Report Missing
Head commit (e4309f1) 61722 53692 86.99%

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5441) 20 20 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

TIP This summary will be updated as you push new changes. Give us feedback

@stefanhaller stefanhaller merged commit 2057dc1 into master Apr 6, 2026
14 checks passed
@stefanhaller stefanhaller deleted the log-hash-when-deleting-branches branch April 6, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command history lacks detail when deleting a branch

1 participant