HomePhabricator
Diffusion MITK a81c7ad0bcd3

Replace custom GIT_IS_REPO() and GIT_WC_INFO() macros

Description

Replace custom GIT_IS_REPO() and GIT_WC_INFO() macros

  • git rev-list -1 HEAD to check
    • if it is a git repository
    • retrieve the latest hash
  • git name-rev --name-only <hash> to retrieve the revision name

Removed obsolete and undocumented result variables.
Added documentation for short id.

Details

Provenance
kislinskAuthored on Oct 13 2020, 11:37 AM
kislinskPushed on Oct 13 2020, 11:38 AM
Parents
rMITK51b8744e96fd: Replace custom GIT_IS_REPO macro with `git rev-parse --is-inside-work-tree`
Branches
Unknown
Tags
Unknown

Event Timeline