GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mellowcandle/astyle_precommit_hook: AStyle Git precommit hook for code beautification enforcement

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
pre-commit
pre-commit
 
 

Repository files navigation

astyle_precommit_hook

AStyle Git precommit hook for code beautification enforcement

Features:

  • deletes trailing whitespaces by default
  • Creates a backup in a folder with date/time
  • Two styles defined: Linux kernel, and User space.

Prerequisites:

  • Astyle (Artistic style) installed and added to PATH.

Installation:

  • copy the file to .git/hooks in desired repository.
  • Add execution mode (chmod +x)
  • Optional: Installation for every created repository. sudo cp ./pre-commit /usr/share/git-core/templates/hooks/

Usefull notes:

  • To bypass the hook, just add -n to the git commit command ( git commit -n)

About

AStyle Git precommit hook for code beautification enforcement

Topics

astylebeautification-enforcementgithooksshell

Resources

Readme
Activity

Stars

19 stars

Watchers

2 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.