Skip to content
  • Stefan Beller's avatar
    builtin/describe: introduce --broken flag · b0176ce6
    Stefan Beller authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    git-describe tells you the version number you're at, or errors out, e.g.
    when you run it outside of a repository, which may happen when downloading
    a tar ball instead of using git to obtain the source code.
    
    To keep this property of only erroring out, when not in a repository,
    severe (submodule) errors must be downgraded to reporting them gently
    instead of having git-describe error out completely.
    
    To achieve that a flag '--broken' is introduced, which is in the same
    vein as '--dirty' but uses an actual child process to check for dirtiness.
    When that child dies unexpectedly, we'll append '-broken' instead of
    '-dirty'.
    
    Signed-off-by: default avatarStefan Beller <sbeller@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b0176ce6