This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Move git_repo_tools
and process_fakes
outside of clang_tidy
.
#46017
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
16d75ed
Keep tools/clang_tidy/lib/src/git_repo.dart
matanlurey 7820e1b
Copy tools/clang_tidy/lib/src/git_repo.dart into tools/pkg/git_repo_t…
matanlurey bfceab1
Duplicate tools/clang_tidy/lib/src/git_repo.dart history.
matanlurey 6e3fbf2
Set back tools/clang_tidy/lib/src/git_repo.dart file
matanlurey 464578a
Start working on new sub-package.
matanlurey ec556e0
Keep tools/clang_tidy/test/process_fakes.dart
matanlurey 2966a5b
Copy tools/clang_tidy/test/process_fakes.dart into tools/pkg/process_…
matanlurey 2f8adff
Duplicate tools/clang_tidy/test/process_fakes.dart history.
matanlurey 0353b39
Set back tools/clang_tidy/test/process_fakes.dart file
matanlurey 275d920
Move process_fakes, add some test for git_repo_tools.
matanlurey b53b561
Fix pubspecs and imports.
matanlurey 807ca01
Update pubspec.
matanlurey 79576ad
Update run_tests.py.
matanlurey aac8841
Merge.
matanlurey 65b692a
Merge branch 'main' into engine-tools-git-repo
matanlurey 4706b1a
Merge remote-tracking branch 'upstream/main' into engine-tools-git-repo
matanlurey a19efec
Update pubspec overrides.
matanlurey c0c4afd
Merge branch 'main' into engine-tools-git-repo
matanlurey eccf732
Merge branch 'main' into engine-tools-git-repo
matanlurey 56a43b3
Update.
matanlurey 849b20d
Merge branch 'main' into engine-tools-git-repo
matanlurey 69c6ce9
Fix pubspec.
matanlurey a525bfb
Merge branch 'main' into engine-tools-git-repo
matanlurey 1b67e56
Add pkg/async.
matanlurey 85aefe2
Tweak.
matanlurey c7022dc
Merge remote-tracking branch 'upstream/main' into engine-tools-git-repo
matanlurey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# `git_repo_tools` | ||
|
||
This is a repo-internal library for `flutter/engine`, that contains shared code | ||
for writing tools that want to interact with the `git` repository. For example, | ||
finding all changed files in the current branch: | ||
|
||
```dart | ||
import 'dart:io' as io show File, Platform; | ||
|
||
import 'package:engine_repo_tools/engine_repo_tools.dart'; | ||
import 'package:git_repo_tools/git_repo_tools.dart'; | ||
import 'package:path/path.dart' as path; | ||
|
||
void main() async { | ||
// Finds the root of the engine repository from the current script. | ||
final Engine engine = Engine.findWithin(path.dirname(path.fromUri(io.Platform.script))); | ||
final GitRepo gitRepo = GitRepo(engine.flutterDir); | ||
|
||
for (final io.File file in gitRepo.changedFiles) { | ||
print('Changed file: ${file.path}'); | ||
} | ||
} | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 2013 The Flutter Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
name: git_repo_tools | ||
publish_to: none | ||
environment: | ||
sdk: '>=3.2.0-0 <4.0.0' | ||
|
||
# Do not add any dependencies that require more than what is provided in | ||
# //third_party/pkg, //third_party/dart/pkg, or | ||
# //third_party/dart/third_party/pkg. In particular, package:test is not usable | ||
# here. | ||
|
||
# If you do add packages here, make sure you can run `pub get --offline`, and | ||
# check the .packages and .package_config to make sure all the paths are | ||
# relative to this directory into //third_party/dart | ||
|
||
dependencies: | ||
meta: any | ||
path: any | ||
process: any | ||
process_runner: any | ||
|
||
dev_dependencies: | ||
async_helper: any | ||
expect: any | ||
litetest: any | ||
process_fakes: any | ||
smith: any | ||
|
||
dependency_overrides: | ||
args: | ||
path: ../../../../third_party/dart/third_party/pkg/args | ||
async: | ||
path: ../../../../third_party/dart/third_party/pkg/async | ||
async_helper: | ||
path: ../../../../third_party/dart/pkg/async_helper | ||
collection: | ||
path: ../../../../third_party/dart/third_party/pkg/collection | ||
expect: | ||
path: ../../../../third_party/dart/pkg/expect | ||
file: | ||
path: ../../../../third_party/pkg/file/packages/file | ||
litetest: | ||
path: ../../../testing/litetest | ||
meta: | ||
path: ../../../../third_party/dart/pkg/meta | ||
path: | ||
path: ../../../../third_party/dart/third_party/pkg/path | ||
platform: | ||
path: ../../../../third_party/pkg/platform | ||
process: | ||
path: ../../../../third_party/pkg/process | ||
process_fakes: | ||
path: ../process_fakes | ||
process_runner: | ||
path: ../../../../third_party/pkg/process_runner | ||
smith: | ||
path: ../../../../third_party/dart/pkg/smith |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.