Skip to content

git source location in xml output #652

Closed
@AaronRidoutAE

Description

it would help me if the xml output included the source information so the output document says what version of code it refers to for traceability once the file is copied or published outside the git root; perhaps linked to --vcs=git if it was specified? i.e. git origin, branch & hash for my current HEAD:
E.g.

github.com/AlDanial/cloc 1.92 ... https://mickey.mouse@github.com/myproject/root feature/killer_ideas_r_us db426708d5c24664cbc0bfa2e3fd8dc35cad3ea0

pseudo code: \ngit remote get-url origin\ngit symbolic-ref --short HEAD\ngit rev-parse HEAD\n\n

Thanks for a great tool - Aaron

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions