git_archive Subroutine

public subroutine git_archive(source, destination, ref, additional_files, verbose, error)

Archive a folder using git archive.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: source

Directory to archive.

character(len=*), intent(in) :: destination

Destination of the archive.

character(len=*), intent(in) :: ref

(Symbolic) Reference to be archived.

character(len=*), intent(in), optional :: additional_files(:)

(Optional) list of additional untracked files to be added to the archive.

logical, intent(in) :: verbose

Print additional information if true.

type(error_t), intent(out), allocatable :: error

Error handling.


Variables

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: add_files
character(len=:), public, allocatable :: archive_format
character(len=:), public, allocatable :: cmd_output
integer, public :: i
integer, public :: stat