Skip to content

Use git ref instead of branch for stgit log #65

@hborchardt

Description

@hborchardt

I am having the problem that when viewing the repo state in SourceTree, my branch list is cluttered with the <mybranch>.stgit log entries from stgit (same argument as Issue #32).
Instead of not logging at all, would it be possible to not use a branch for the stgit log, but instead an abstract git ref like
refs/stgitlog/<mybranch>
to track the state of the log?

I did a quick test changing

return 'refs/heads/%s.stgit' % branch

to
return 'refs/stgitlog/%s.stgit' % branch
and as far as I can tell logging, undo, etc. works, as well as having a clean view in SourceTree.

I acknowledge that this would be a breaking change if just edited, so we might want to make the second part of the ref configurable.

If you could confirm that I am not missing anything and you would welcome such a change, I can give a shot at a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions