Method: QB::Repo::Git#status
- Defined in:
- lib/qb/repo/git.rb
#status ⇒ Object
Reading Repo State
275 276 277 278 279 280 281 282 |
# File 'lib/qb/repo/git.rb', line 275 def status Cmds.new( 'git status --porcelain', chdir: root_path ). out!.lines.map( &:chomp ).map { |line| m = /\A\s*(?<mode>\S+)\s*(?<path>.*)\z/.match line [m['path'], m['mode']] }.to_h end |