Expand description
§Git
This module provides a set of functions to interact with git.
Structs§
- Commit
- A struct that represents a commit information
- Publish
TagInfo - A struct that represents a publish tag information
- Remote
Tags - A struct that represents a remote tag information
Functions§
- get_
all_ files_ changed_ since_ branch - Given an input of the “main” branch name, returns all the files that have changed since the current branch was created
- get_
commits_ since - Returns commits since a particular git SHA or tag. If the “since” parameter isn’t provided, all commits from the dawn of man are returned
- get_
diverged_ commit - Get the diverged commit from a particular git SHA or tag.
- get_
last_ known_ publish_ tag_ info_ for_ all_ packages - Grabs the last known publish tag info for all packages in the monorepo
- get_
last_ known_ publish_ tag_ info_ for_ package - Grabs the last known publish tag info for a package
- get_
remote_ or_ local_ tags - Grabs the full list of all tags available on upstream or local
- git_add
- Add a file to the git stage
- git_
add_ all - Stage all uncommitted changes
- git_
all_ files_ changed_ since_ sha - Given a specific git sha, finds all files that have been modified since the sha and returns the absolute filepaths.
- git_
branch_ from_ commit - Get the branch (last) name for a commit
- git_
commit - git_
config - Configure git user name and email
- git_
current_ branch - Get the current branch name
- git_
current_ sha - Get the current commit id
- git_
fetch_ all - Fetch everything from origin including tags
- git_
first_ sha - Get the first commit in a branch
- git_
previous_ sha - Get the previous commit id
- git_
push - Pushes all changes in the monorepo without verification and follow tags
- git_tag
- Tags the current commit with a message
- git_
workdir_ unclean - Verify if as uncommited changes in the current working directory