Methods
- A
- B
- E
- G
- S
- T
Constants
| Branch | = | Struct.new(:to_str) |
Class Public methods
get_revisions(path, srcdir = nil)
Link
# File tool/vcs.rb, line 285 def self.get_revisions(path, srcdir = nil) gitcmd = %W[git] logcmd = gitcmd + %W[log -n1 --date=iso] logcmd << "--grep=^ *git-svn-id: .*@[0-9][0-9]*" idpat = /git-svn-id: .*?@(\d+) \S+\Z/ log = IO.pread(logcmd, :chdir => srcdir) commit = log[/\Acommit (\w+)/, 1] last = log[idpat, 1] if path cmd = logcmd cmd += [path] unless path == '.' log = IO.pread(cmd, :chdir => srcdir) changed = log[idpat, 1] else changed = last end modified = log[/^Date:\s+(.*)/, 1] branch = IO.pread(gitcmd + %W[symbolic-ref HEAD], :chdir => srcdir)[%r'\A(?:refs/heads/)?(.+)', 1] title = IO.pread(gitcmd + %W[log --format=%s -n1 #{commit}..HEAD], :chdir => srcdir) title = nil if title.empty? [last, changed, modified, branch, title] end
Instance Public methods
after_export(dir)
Link
branch_list(pat)
Link
export(revision, url, dir, keep_temp = false)
Link
grep(pat, tag, *files, &block)
Link
stable()
Link