mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
This commit is contained in:
parent
c5f682cbbc
commit
00d92e6ba2
2 changed files with 12 additions and 5 deletions
7
packages/kbn-pm/dist/index.js
vendored
7
packages/kbn-pm/dist/index.js
vendored
|
@ -57446,7 +57446,7 @@ async function getChangesForProjects(projects, kbn, log) {
|
|||
log.verbose('getting changed files');
|
||||
const {
|
||||
stdout
|
||||
} = await execa__WEBPACK_IMPORTED_MODULE_3___default()('git', ['ls-files', '-dmt', '--', ...Array.from(projects.values()).filter(p => kbn.isPartOfRepo(p)).map(p => p.path)], {
|
||||
} = await execa__WEBPACK_IMPORTED_MODULE_3___default()('git', ['ls-files', '-dmto', '--exclude-standard', '--', ...Array.from(projects.values()).filter(p => kbn.isPartOfRepo(p)).map(p => p.path)], {
|
||||
cwd: kbn.getAbsolute()
|
||||
});
|
||||
const output = stdout.trim();
|
||||
|
@ -57473,10 +57473,13 @@ async function getChangesForProjects(projects, kbn, log) {
|
|||
unassignedChanges.set(path, 'deleted');
|
||||
break;
|
||||
|
||||
case '?':
|
||||
unassignedChanges.set(path, 'untracked');
|
||||
break;
|
||||
|
||||
case 'H':
|
||||
case 'S':
|
||||
case 'K':
|
||||
case '?':
|
||||
default:
|
||||
log.warning(`unexpected modification status "${tag}" for ${path}, please report this!`);
|
||||
unassignedChanges.set(path, 'invalid');
|
||||
|
|
|
@ -32,7 +32,7 @@ import { Kibana } from '../utils/kibana';
|
|||
|
||||
export type ChecksumMap = Map<string, string | undefined>;
|
||||
/** map of [repo relative path to changed file, type of change] */
|
||||
type Changes = Map<string, 'modified' | 'deleted' | 'invalid'>;
|
||||
type Changes = Map<string, 'modified' | 'deleted' | 'invalid' | 'untracked'>;
|
||||
|
||||
const statAsync = promisify(Fs.stat);
|
||||
const projectBySpecificitySorter = (a: Project, b: Project) => b.path.length - a.path.length;
|
||||
|
@ -45,7 +45,8 @@ async function getChangesForProjects(projects: ProjectMap, kbn: Kibana, log: Too
|
|||
'git',
|
||||
[
|
||||
'ls-files',
|
||||
'-dmt',
|
||||
'-dmto',
|
||||
'--exclude-standard',
|
||||
'--',
|
||||
...Array.from(projects.values())
|
||||
.filter(p => kbn.isPartOfRepo(p))
|
||||
|
@ -78,10 +79,13 @@ async function getChangesForProjects(projects: ProjectMap, kbn: Kibana, log: Too
|
|||
unassignedChanges.set(path, 'deleted');
|
||||
break;
|
||||
|
||||
case '?':
|
||||
unassignedChanges.set(path, 'untracked');
|
||||
break;
|
||||
|
||||
case 'H':
|
||||
case 'S':
|
||||
case 'K':
|
||||
case '?':
|
||||
default:
|
||||
log.warning(`unexpected modification status "${tag}" for ${path}, please report this!`);
|
||||
unassignedChanges.set(path, 'invalid');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue