func Usage()

in cmd/collapsed-kube-commit-mapper/main.go [34:73]


func Usage() {
	fmt.Fprintf(os.Stderr, `Print a lookup table by printing each mainline k8s.io/kubernetes
commit hash with its corresponding commit hash in the current branch
(which is the result of a "git filter-branch --sub-directory"). It is
expected that the commit messages on the current branch contain a
"Kubernetes-commit: <upstream commit>" line for the directly corresponding
commit. Note, that a number of k8s.io/kubernetes mainline commits might
be collapsed during filtering:

    HEAD <source-branch>
     |          |
     H'<--------H
     z          |
     y         ,G
     F'<------*-F
     |        ,-E
     x       / ,D
     |      / / |
     C'<----**--C
     j          |
     i <----*   |
             \--B
              '-A

The sorted output looks like this:

    <sha of A> <sha of i>
    <sha of B> <sha of j>
    <sha of C> <sha of C'>
    <sha of D> <sha of C'>
    <sha of E> <sha of C'>
    <sha of F> <sha of F'>
    <sha of G> <sha of F'>
    <sha of H> <sha of H'>
    ...

Usage: %s --source-branch <source-branch> [-l] [--commit-message-tag <Commit-message-tag>]
`, os.Args[0])
	flag.PrintDefaults()
}