facebook / sapling

A Scalable, User-Friendly Source Control System.
https://sapling-scm.com
GNU General Public License v2.0
6.18k stars 285 forks source link

feat(scm-prompt): add support for dotgit #921

Closed vegerot closed 3 months ago

facebook-github-bot commented 4 months ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 3 months ago

@vegerot has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 3 months ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 3 months ago

This pull request has been merged in facebook/sapling@325232d484d89a1a9f869a266b83be7c5a6f23c4.

quark-zju commented 2 months ago

FYI There are some internal complaints about the git branch name becomes a commit hash. We run ISL for internal users so .git/sl is auto created (by ISL). To address the complaint, I made it default to git prompt and can be switched using the SCM_PROMPT_PREFER_GIT environment variable.