git_create_sample_log: Creates a sample git log with one commit

git_create_sample_logR Documentation

Creates a sample git log with one commit

Description

This is a SetUp helper function for Kaiaulu unit tests that manipulates git logs.

Usage

git_create_sample_log(folder_path = "/tmp")

Arguments

folder_path

An optional path to where the sample .git should be created.

Details

A folder kaiaulu_sample is created in /tmp by default. A file, hello.R with a single print is then added to the folder. Git init is performed, the file is git add, and commit to the git log.

Value

The path to the sample .git file.

See Also

Other unittest: git_delete_sample_log(), make_jira_issue()


sailuh/kaiaulu documentation built on Dec. 10, 2024, 3:14 a.m.