Committee v1.0.0 Committee.Helpers View Source

This module provides helper functions to make working with git easier with functions like staged_files/0.

Link to this section Summary

Functions

This function returns a list of staged files

This function returns a list of staged files, but takes in a list of atoms/strings to return by file extensions.

Link to this section Functions

Link to this function

branch_name()

View Source
branch_name() :: binary()
Link to this function

staged_files()

View Source
staged_files() :: [String.t()]

This function returns a list of staged files

Link to this function

staged_files(ext)

View Source
staged_files(String.t() | [String.t()]) :: [String.t()]

This function returns a list of staged files, but takes in a list of atoms/strings to return by file extensions.