leoliu / pcmpl-git-el

Emacs pcomplete for git
9 stars 5 forks source link

Git flow support? #4

Open zwild opened 8 years ago

zwild commented 8 years ago

I use this package a lot. It's great work. However sometimes some projects need git-flow. So I have to write my own one, but the syntax is git-flow tab tab. I know it's the pcompletion for git, but I think add git-flow support will be great.

leoliu commented 8 years ago

hi @hiddenlotus,

Since git-flow is not part of git I am not sure it should be supported in this package. Maybe someone should create a new elisp package pcmpl-git-flow.el to support flow properly. However I think you might be able to make do with the following hack:

(with-eval-after-load 'pcmpl-git
  (puthash "flow" (list "" (list "--OPTION-A" "--OPTION-B" ...))
           pcmpl-git-hashtable))

HTH, Leo