Skip to content

Instantly share code, notes, and snippets.

View mallowigi's full-sized avatar
🌴
Salut tout le monde les gens!

Elior Boukhobza mallowigi

🌴
Salut tout le monde les gens!
View GitHub Profile
@mallowigi
mallowigi / prepare-commit-msg.bash
Created February 1, 2021 14:26
Commit Message Hook
#!/bin/sh
#
# Automatically adds branch name and branch description to every commit message.
#
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master release-version)
fi
ALT_NAME=$(git branch | grep '*' | sed 's/* //')i
BRANCH_NAME=$(git symbolic-ref --short HEAD 2>/dev/null)
/**
* ****************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2024 Elior "Mallowigi" Boukhobza
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,