Changeset - 7ea1116e5a17
[Not reviewed]
0 1 0
Branko Majic (branko) - 20 months ago 2022-08-21 15:47:42
branko@majic.rs
[factorio_development.sh] Use long options for git commands where available:

- Improves readability of code.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
games/factorio_development.sh
Show inline comments
 
@@ -860,8 +860,8 @@ function command_release() {
 
    # Commit the changes and create a tag. GIT_VERSION_TAG_PREFIX
 
    # comes from build configuration.
 
    if ! git -C "$base_dir" add "$changelog_file" "$info_file" || \
 
       ! git -C "$base_dir" commit --edit -m "Prepared release $version." || \
 
       ! git -C "$base_dir" tag "${git_tag_gpgsign[@]}" -a -m "Release $version." "${GIT_VERSION_TAG_PREFIX}${version}"; then
 
       ! git -C "$base_dir" commit --edit --message "Prepared release $version." || \
 
       ! git -C "$base_dir" tag "${git_tag_gpgsign[@]}" --annotate --message "Release $version." "${GIT_VERSION_TAG_PREFIX}${version}"; then
 

	
 
        error "Failed to create release commit and tag."
 
        return 1
 
@@ -883,7 +883,7 @@ EOF
 

	
 
    # Commit the changes.
 
    if ! git -C "$base_dir" add "$changelog_file" "$info_file" || \
 
       ! git -C "$base_dir" commit -m "Switched back to development version."; then
 
       ! git -C "$base_dir" commit --message "Switched back to development version."; then
 
        error "Failed to create developement commit."
 
        return 1
 
    fi
0 comments (0 inline, 0 general)