Skip to content

--csv option for importing CSV #6

@simonw

Description

@simonw

Right now CSV is handled by an obtuse recipe in https://github.com/simonw/git-history/blob/84663eeb60fc5f35f6845597d1cddb85e70b8f19/README.md#custom-conversions-using---convert

git-history file trees.db ../sf-tree-history/Street_Tree_List.csv \
  --repo ../sf-tree-history \
  --import csv \
  --import io \
  --convert 'list(csv.DictReader(io.StringIO(content.decode("utf-8"))))' \
  --id TreeID

This could and should be easier! Maybe a --csv option that does that for you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions