const ( // RepoHeader is the header for repos. RepoHeader = "NAME\tCREATED\tSIZE (MASTER)\tDESCRIPTION\t\n" // RepoAuthHeader is the header for repos with auth information attached. RepoAuthHeader = "NAME\tCREATED\tSIZE (MASTER)\tACCESS LEVEL\t\n" // CommitHeader is the header for commits. CommitHeader = "REPO\tBRANCH\tCOMMIT\tFINISHED\tSIZE\tPROGRESS\tDESCRIPTION\n" // BranchHeader is the header for branches. BranchHeader = "BRANCH\tHEAD\t\n" // FileHeader is the header for files. FileHeader = "NAME\tTYPE\tSIZE\t\n" // FileHeaderWithCommit is the header for files that includes a commit field. FileHeaderWithCommit = "COMMIT\tNAME\tTYPE\tCOMMITTED\tSIZE\t\n" // DiffFileHeader is the header for files produced by diff file. DiffFileHeader = "OP\t" + FileHeader )
CompactPrintBranch renders 'b' as a compact string, e.g. "myrepo@master:/my/file"
CompactPrintCommit renders 'c' as a compact string, e.g. "myrepo@123abc:/my/file"
CompactPrintFile renders 'f' as a compact string, e.g. "myrepo@master:/my/file"
PrintBranch pretty-prints a Branch.
PrintCommitInfo pretty-prints commit info.
PrintDetailedBranchInfo pretty-prints detailed branch info.
PrintDetailedCommitInfo pretty-prints detailed commit info.
PrintDetailedFileInfo pretty-prints detailed file info.
PrintDetailedRepoInfo pretty-prints detailed repo info.
PrintDiffFileInfo pretty-prints a file info from diff file.
PrintFileInfo pretty-prints file info. If recurse is false and directory size is 0, display "-" instead If fast is true and file size is 0, display "-" instead
PrintRepoInfo pretty-prints repo info.
PrintableCommitInfo is a wrapper around CommitInfo containing any formatting options used within the template to conditionally print information.
NewPrintableCommitInfo constructs a PrintableCommitInfo from just a CommitInfo.
PrintableRepoInfo is a wrapper around RepoInfo containing any formatting options used within the template to conditionally print information.
NewPrintableRepoInfo constructs a PrintableRepoInfo from just a RepoInfo.