Page MenuHomeDevCentral

git-regenerate-commit
No OneTemporary

git-regenerate-commit

#!/bin/sh
# -------------------------------------------------------------
# Git commit regenerator
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/devserver/userland-home/files/dereckson/bin/git-regenerate-commit
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
# Get needed information from HEAD commit
message=$(git rev-list --format=%B --max-count=1 HEAD | tail +2)
files=$(git diff-tree --no-commit-id --name-only HEAD -r)
# Regenerate the commit
git reset HEAD^
git add $files
echo $message | git commit -F -

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Nov 13, 18:00 (3 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4210081
Default Alt Text
git-regenerate-commit (893 B)

Event Timeline