Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sessions aliases #33

Open
wufe opened this issue May 22, 2021 · 0 comments
Open

Sessions aliases #33

wufe opened this issue May 22, 2021 · 0 comments
Labels
feature New feature

Comments

@wufe
Copy link
Owner

wufe commented May 22, 2021

A created session should have a readable alias.
The alias would be stored permanently with its commit.

The session would be identified with a struct like this

type SessionIdentifier struct {
    CommitID string
    Alias string // Previously known as checkout
    AliasType AliasType
}

const (
    AliasType string
    AliasTypeLinked AliasType = "linked" // The alias is linked to its origin checkout (e.g. a branch or a tag)
    AliasTypeMadeUp AliasType = "made-up" // The alias has been created by a random name generator
    AliasTypeUserDefined AliasType = "user-defined" // The alias has been defined by the user
)

The aliases could be used for handling secondary applications permalinks

@wufe wufe added the feature New feature label May 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant