Skip to content

Strip common paths #21

@tomfa

Description

@tomfa

I don't care about the path to the repos, really, just the repo name.

Instead of

date;repository;hours
2020-08-25;/Users/tomasfagerbekk/repos/askeladden.toolbox;2.6
2020-08-25;/Users/tomasfagerbekk/repos/digg.client.app;4.8
2020-08-26;/Users/tomasfagerbekk/repos/digg.client.app;11.2
2020-08-27;/Users/tomasfagerbekk/repos/askeladden.toolbox;0.9
2020-08-27;/Users/tomasfagerbekk/repos/digg.client.app;7.6
2020-08-28;/Users/tomasfagerbekk/repos/FoodSociety.App;1.2
2020-08-28;/Users/tomasfagerbekk/repos/Petrus.Web;1.0
2020-08-28;/Users/tomasfagerbekk/repos/digg.client.app;0.5
2020-08-29;/Users/tomasfagerbekk/repos/askeladden.toolbox;1.0
2020-08-29;/Users/tomasfagerbekk/repos/digg.client.app;1.1
2020-08-30;/Users/tomasfagerbekk/repos/askeladden.toolbox;6.8
2020-08-30;/Users/tomasfagerbekk/repos/digg.client.app;1.6

Make it

date;repository;hours
2020-08-25;askeladden.toolbox;2.6
2020-08-25;digg.client.app;4.8
2020-08-26;digg.client.app;11.2
2020-08-27;askeladden.toolbox;0.9
2020-08-27;digg.client.app;7.6
2020-08-28;FoodSociety.App;1.2
2020-08-28;Petrus.Web;1.0
2020-08-28;digg.client.app;0.5
2020-08-29;askeladden.toolbox;1.0
2020-08-29;digg.client.app;1.1
2020-08-30;askeladden.toolbox;6.8
2020-08-30;digg.client.app;1.6
  • Either accomplish this by stripping the common path, or just show the folder name. (preferably the last?)
  • Maybe add a flag to show absolute path with --absolute-path

Metadata

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