This repository has been 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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…46017) Closes flutter/flutter#134988.
- Loading branch information
1 parent
0dbdd85
commit c0ee5f0
Showing
13 changed files
with
419 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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.