gtm icon indicating copy to clipboard operation
gtm copied to clipboard

What does `[m]` and `[r]` mean ?

Open chenbotao828 opened this issue 7 years ago • 3 comments

Hi everybody! I have one simple question about gtm output, in codes below:

$ gtm status

       20m 40s  53% [m] plugin/gtm.vim
       18m  5s  46% [r] Terminal
           15s   1% [m] .gitignore
       39m  0s          gtm-vim-plugin 

What does [m] and [r] mean ? Thanks if anyone can explain that!

chenbotao828 avatar Oct 04 '17 15:10 chenbotao828

Good question, m is for modified and r is for read.

mschenk42 avatar Oct 05 '17 02:10 mschenk42

Thanks Another question: Why a file ,untracked by git, have a '[r]' sign, which means read ,is this a bug? For example:

$ gtm status
$ gtm status

       20m 40s  53% [r] plugin/gtm.vim
       18m  5s  46% [r] T
in/gtm.vim
       18m  5s  46% [r] Terminal
           15s   1% [m] .gitignore
       39m  0s          gtm-vim-plugin 

'plugin/gtm.vim' is untracked

chenbotao828 avatar Oct 05 '17 03:10 chenbotao828

That's by design. We use git to determine the file status. If it's not in the git repo we default to r.

mschenk42 avatar Oct 05 '17 14:10 mschenk42