foriequal0 / git-trim

Automatically trims your branches whose tracking remote refs are merged or stray
MIT License
489 stars 14 forks source link

`--porcelain` option that prints machine-readable output #138

Open foriequal0 opened 4 years ago

siedentop commented 4 years ago

Could you describe this in some more detail please?

Do you want more to record the output and then apply them later? Or just output that can be used by piped commands?

foriequal0 commented 4 years ago

I'm thinking about the latter. git-trim does does many things at once. fetch-prune, detect the base branch, classify, delete branches, etc. I think the core feature of git-trim is the classifying the branches. I think I'm even able to implement git-trim with the shell script except the classifier. So I want to separate and expose core classifier as a cli command (like git status --porclain) or a library. However, I don't have a concrete plan to execute. git-trim is still version 0.x. It is unstable and possible to change a lot.