Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Display the status of a git repository
ResourceFunction["ShowGitStatus"][] returns the status of the git repository in the working Directory[]. | |
ResourceFunction["ShowGitStatus"][dir] returns the status of the git repository located in the given directory dir. |
Appearance | "Styled" | the format of the output |
"GitPath" | Automatic | the location of the git executable |
"String" | an unstyled string indicating status |
"Styled" | a status string with additional font coloring to indicate status |
"Tooltip" | a colored icon with the status in a tooltip |
Linux | which | system installed git |
MacOS | which | git installed with brew |
Windows | where | system installed git |
Check if a directory is a git repo:
In[1]:= |
|
Out[2]= |
|
Visualize the git status of any path:
In[3]:= |
|
Out[3]= |
|
In[4]:= |
|
Out[4]= |
|
In[5]:= |
|
Out[5]= |
|
Change the appearance of the returned status:
In[6]:= |
|
Out[6]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License