Closed epage closed 2 years ago
I have considered the idea of auto-detecting protected branches. The case I was thinking of was if someone had not marked a branch as protected, we should avoid showing the 500 commits on it. This would help with #90.
The challenge is getting the heuristic right
This might not be useful for your use-case, but git-branchless
considers a commit to have been authored by you if it was observed by a post-commit
or post-rewrite
hook. This means:
See also the criteria for surfacing a commit in the smartlog: https://github.com/arxanas/git-branchless/wiki/Command:-git-smartlog#which-commits-are-visible
We're intentionally not relying on hooks but this makes me realize I should call out that any detection we do should be based on the Committer rather than the Author (or both?) so changes in history cause us to re-evaluate.
You'd probably want to consider both the Author and Committer - consider that the GitHub web UI has its own committer identity.
Version
No response
Use Case
@Bouke when dealing with overwhelming output from git-stack
Split from #107
Requirements
Possible Solutions
No response