dev
List of commits:
Subject Hash Author Date (UTC)
cleanup dcdbf46efc941947f524debeddc000a9659e483c mucbuc 2020-07-04 15:41:28
good stuff 279e81e8f9a627a1331f4933aff3a2bf353eaf87 mucbuc 2020-07-04 05:35:37
better 708ed582f047c343c1cc8b6bec5214d597f3b4ef mucbuc 2020-07-04 05:12:43
try this ac05fe4edecf9349898e2bb940d3be876a25ebe4 mucbuc 2020-07-04 05:09:58
add separate step for linting 87ee1ef308138c72c72ce1b86a1b5cfe7648c22c mucbuc 2020-07-04 04:56:35
test bf37d2ede1d14e091993e6bdf075d8da0e12918c mucbuc 2020-07-04 04:50:29
test c5866575ec718fdbfb5b1240c6c4161e8c5089a3 mucbuc 2020-07-04 04:48:42
test 991c957339e60a7574da158e56bac545e89bbf2d mucbuc 2020-07-04 04:47:52
fix ed script 4710366e843510b16e6b3c3bc9c9c60be12fbeb8 mucbuc 2020-07-04 04:39:59
lint script 2dbb52ebe6853b3e79c49ceab9e9201776910c30 mucbuc 2020-07-04 04:38:28
wtf 90500373a23c05b472a816733904b900e0e20e79 mucbuc 2020-07-04 04:36:07
working on pre-commit afd729a52c43696c5fdd70c447284e0725f2b6f4 mucbuc 2020-07-04 02:07:03
--keep-index a28f4552baea3b98bd383f02c992746d2977084e mucbuc 2020-07-04 01:58:26
working on git stash f44be88386cd5df0a978939e7f61a42ddd3a571a mucbuc 2020-07-04 01:53:49
package.json 577110fa840e9fc6898d686187d238303c1572f5 mucbuc 2020-07-04 01:46:18
package.json f2145b49657d8f6d4f10e270626b4278cf91795d mucbuc 2020-07-04 01:46:12
.gitignore 2797eaf7a12411681bd380bb1f5a021337c5eb79 mucbuc 2020-07-04 01:46:00
pre-commit 40f40138789c46d1e3343da52f80a5ce137e568a mucbuc 2020-07-04 01:45:29
Commit dcdbf46efc941947f524debeddc000a9659e483c - cleanup
Author: mucbuc
Author date (UTC): 2020-07-04 15:41
Committer name: mucbuc
Committer date (UTC): 2020-07-04 15:41
Parent(s): 279e81e8f9a627a1331f4933aff3a2bf353eaf87
Signer:
Signing key:
Signing status: N
Tree: c3cb9a7ec86cf96f25f3aaed1b7d4ad889bea3c8
File Lines added Lines deleted
pre-commit.js 4 4
File pre-commit.js changed (mode: 100755) (index c0f3cd4..040a1f5)
1 1 #!/usr/bin/env node #!/usr/bin/env node
2 2
3 const shell = require('shelljs'),
3 const { exec } = require('shelljs'),
4 4 fs = require( 'fs' ), fs = require( 'fs' ),
5 5 { tryAndRunScript } = require( './base' ); { tryAndRunScript } = require( './base' );
6 6
7 7 console.log('pre-commit'); console.log('pre-commit');
8 const hasChanges = shell.exec('git status --porcelain', {silent:true}).stdout.length;
8 const hasChanges = exec('git status --porcelain', {silent:true}).stdout.length;
9 9 if (hasChanges) { if (hasChanges) {
10 shell.exec( 'git stash --keep-index -q' );
10 exec( 'git stash --keep-index -q' );
11 11 } }
12 12 for (const step of ['lint', 'test']) { for (const step of ['lint', 'test']) {
13 13 if (!tryAndRunScript(step)) { if (!tryAndRunScript(step)) {
 
... ... for (const step of ['lint', 'test']) {
15 15 } }
16 16 } }
17 17 if (hasChanges) { if (hasChanges) {
18 shell.exec( 'git stash pop -q' );
18 exec( 'git stash pop -q' );
19 19 } }
20 20
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mucbuc/configs

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mucbuc/configs

Clone this repository using git:
git clone git://git.rocketgit.com/user/mucbuc/configs

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main