Using this function on a repository with no commits currently yields with "Error: Oid id is required." The function is quite helpful but i have to write the long way if the there is no HEAD. Which makes the shorter version irrelevant once i took the effort to write the longer one. So should the option be included to also support the initial commit if none is available?
Reactions are currently unavailable
Using this function on a repository with no commits currently yields with "Error: Oid id is required." The function is quite helpful but i have to write the long way if the there is no HEAD. Which makes the shorter version irrelevant once i took the effort to write the longer one. So should the option be included to also support the initial commit if none is available?