hotoo / gitopen

:twisted_rightwards_arrows: Open git/hg/svn remote url via web browser from terminal.
https://hotoo.github.io/blog/post/gitopen
42 stars 6 forks source link

git branch description #36

Closed hotoo closed 7 years ago

hotoo commented 8 years ago

Sometimes, branch name is unreadable for people, you can add a description for this branch:

$ git branch  --edit-description
$ git config branch.youBranchName.description youDescriptionHere

gitopen need show the description when show remote branch option menu.

$ gitopen mr
? Choose remote brance to compare: (Use arrow keys)
❯ origin/MS146182233844965268_20160428 (show description here)
  origin/MS146182233844123456_20160620 (another description)
  origin/master 
hotoo commented 8 years ago
$ git branch | sed 's/^ /_/' | awk '{desc=""; "git config branch."$2".description"|getline desc ; print $1" "$2" "desc}'|sed 's/^_/ /g'
hotoo commented 7 years ago

auto open base branch when open PR/MR, not need this feature.