@towles/tool 0.0.11-beta.2 → 0.0.11-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import { homedir } from 'node:os';
|
|
|
18
18
|
import { setupDotenv, loadConfig } from 'c12';
|
|
19
19
|
import { updateConfig } from 'c12/update';
|
|
20
20
|
|
|
21
|
-
const version = "0.0.11-beta.
|
|
21
|
+
const version = "0.0.11-beta.3";
|
|
22
22
|
|
|
23
23
|
class AnyError extends Error {
|
|
24
24
|
name = "AnyError";
|
|
@@ -169,7 +169,8 @@ function execCommand(cmd, cwd) {
|
|
|
169
169
|
async function getGitDiff(cwd) {
|
|
170
170
|
const r = execCommand(
|
|
171
171
|
// `git --no-pager log "${from ? `${from}...` : ''}${to}" `,
|
|
172
|
-
|
|
172
|
+
// using --cached because staged didn't work on MacOS
|
|
173
|
+
`git --no-pager diff --cached`,
|
|
173
174
|
// --name-status
|
|
174
175
|
// --pretty="----%n%s|%h|%an|%ae%n%b"
|
|
175
176
|
cwd
|
package/package.json
CHANGED