Class: Avm::Git::Organize::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/git/organize/repository.rb

Instance Method Summary collapse

Instance Method Details

#all_branchesObject



35
36
37
# File 'lib/avm/git/organize/repository.rb', line 35

def all_branches
  eac_git_local.execute!
end

#collect_originalsObject



28
29
30
31
32
33
# File 'lib/avm/git/organize/repository.rb', line 28

def collect_originals
  collect_references_with_pattern(
    %r{\Aoriginal/},
    ::Avm::Git::Organize::ReferenceUpdate::OPERATION_REMOVE
  )
end

#collect_subreposObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/avm/git/organize/repository.rb', line 17

def collect_subrepos
  collect_references_with_pattern(
    %r{\Asubrepo/},
    ::Avm::Git::Organize::ReferenceUpdate::OPERATION_REMOVE
  )
  collect_references_with_pattern(
    %r{\Aheads/subrepo/},
    ::Avm::Git::Organize::ReferenceUpdate::OPERATION_REMOVE
  )
end

#collected_referencesObject



13
14
15
# File 'lib/avm/git/organize/repository.rb', line 13

def collected_references
  @collected_references || []
end