git - browse through branch refs making use '/' (forward slash) grouping -


i have 2 parts o following question.

general: including / (forward slash) within name of branch puts head of branch within directory specified path interpreted using /.

e.g. head of branch named category-1/ref-1 wil named ref-1 , stored in ./.git/refs/heads/category-1/ ref-1.

i refer sort of 'branch directory' branch pseudo folder (bpf)

part 1 -

i have dos dir command or linux ls command listing refs in particular bpf.

part 2 -

for such command, configure tab-completion work works when typing normal system paths. also, configure similar tab configuration other functions require ref names e.g. git checkout

e.g - assume command named git branch-ls. also. assume following 4 branch heads exist.

cooling/ac cooling/fridge  heating/heater heating/microwave 

now, following behavior.

git branch-ls hea[tab] 

should complete git branch-ls heating/ , further tab should complete complete ref name. note unlike working of branch name completion in checkout.

also,

git branch-ls heating/ 

should list refs in above bpf. i.e. output should of form

heater microwave 


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -