Skip to content

ENHANCEMENT: Make default email guessing more intelligent #1

Open
@mroth

Description

Currently, if kaclone.email if not present in the gitconfig hierarchy, we try to guess default user email by doing $USER + "@" + DEFAULT_EMAIL_DOMAIN.

As @spicyj noted in code review, we could additionally first check if gitconfig has a user.email setting which endswith(DEFAULT_EMAIL_DOMAIN), and if so, use that first. There are a few more places we could check for hints as well, such as the GIT_AUTHOR_EMAIL os.environ variable.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions