dev
List of commits:
Subject Hash Author Date (UTC)
format 11b3b5dda7f9897eac97a3a07d48404c72f8c945 mucbuc 2020-07-08 04:01:06
pre-commit not linting a6150b39d873c4796ea7f0eb02f116f7c5068124 mucbuc 2020-07-08 03:42:52
stagedFiles 09505713d1e6eb5da489a5081fe904794110b8a0 mucbuc 2020-07-08 03:40:49
lint 36aa6510d88da2d7cdde5fb776a33ef6d20f5242 mucbuc 2020-07-08 03:28:02
copy scripts 2010244fc51915c8700b370a04aa9ea1af6de30d mucbuc 2020-07-07 09:23:09
dont add changes from lint b0a615143517985a99f929b1f313751cc9369bb6 mucbuc 2020-07-05 04:43:28
pre-commit.js a4ab48e75e496071f24a910524f8ec788c0f5309 mucbuc 2020-07-05 04:28:05
install husky 97104fc9ba4dd4164bf29eaf7505f10d61ace7d7 mucbuc 2020-07-05 04:21:51
print commands 054c9efa2ae06a16f05a080b111cb3b1b27f3287 mucbuc 2020-07-05 04:17:28
use green instead of yellow ce503ff8ef3dba2761179ccb56e629542b3e27cd mucbuc 2020-07-04 20:31:01
color output 3d198cf7d4e657ab8ba8d798174116b8336ef258 mucbuc 2020-07-04 20:17:24
explict mode ffc586960df26c70adba18de1ed30616e3057edf mucbuc 2020-07-04 18:11:36
test this 27b7953902d0e3d7a6c3ed73c911690a5e814954 mucbuc 2020-07-04 18:09:59
moreshit 592c64abc5f14a08c094be44f7d19ae6264e36b8 mucbuc 2020-07-04 18:08:56
fix merge conflict ab4ee2b9ebbaa6379bdb83664efae5d45c428e5d mucbuc 2020-07-04 18:01:40
cleanup e363a09bd4cf01d773d3725db73f3465c89bb4e7 mucbuc 2020-07-04 17:58:30
wtf f0af08ef01ec498b6d8be8c6ce5704aa616338d4 mucbuc 2020-07-04 17:56:30
tewst 01ae9b15d3a0af828ba5d43c9c76247a7e94d06c mucbuc 2020-07-04 17:53:45
anoter test fc42db84f208b381ccff11305bb8d81aafe6c2e7 mucbuc 2020-07-04 17:10:17
try it abd7fa98a8b10d1ab31c727b4e5cda32779acd43 mucbuc 2020-07-04 17:06:34
Commit 11b3b5dda7f9897eac97a3a07d48404c72f8c945 - format
Author: mucbuc
Author date (UTC): 2020-07-08 04:01
Committer name: mucbuc
Committer date (UTC): 2020-07-08 04:01
Parent(s): a6150b39d873c4796ea7f0eb02f116f7c5068124
Signer:
Signing key:
Signing status: N
Tree: fcbe64d93588513ad4aab217a197f25c276f8cee
File Lines added Lines deleted
base.js 1 0
format.js 19 0
File base.js changed (mode: 100644) (index 67b30c6..07d795c)
... ... const shell = require("shelljs"),
4 4 cursor = ansi(process.stdout); cursor = ansi(process.stdout);
5 5
6 6 module.exports = { module.exports = {
7 exec: shell.exec,
7 8 tryAndRunScript: function (name) { tryAndRunScript: function (name) {
8 9 try { try {
9 10 fs.accessSync(`./${name}.js`); fs.accessSync(`./${name}.js`);
File format.js added (mode: 100755) (index 0000000..cbfc512)
1 #!/usr/bin/env node
2
3 const { exec, print, stagedFiles } = require("./base"),
4 files = stagedFiles();
5
6 const cFiles = files.filter((file) => file.match(/.*\.(h|hxx|c|cpp|cxx)$/));
7 if (cFiles.length) {
8 const command = `clang-format -i --style=Webkit ${cFiles.join(" ")}`;
9 print(command);
10 exec(command);
11 }
12
13 const jsFiles = files.filter((file) => file.match(/.*\.js$/));
14 if (jsFiles.length > 1) {
15 const params = jsFiles.join(" "),
16 command = `npx prettier --write ${params}`;
17 print(command);
18 exec(command);
19 }
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