mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-05 04:39:07 -04:00
feat(blob): add more bindings and API methods (#21)
This commit is contained in:
parent
39a71811cb
commit
e6bfdc5a85
423 changed files with 1076 additions and 39 deletions
|
@ -25,6 +25,8 @@ void copyRepo({required Directory from, required Directory to}) {
|
|||
} else if (entity is File) {
|
||||
if (p.basename(entity.path) == 'gitignore') {
|
||||
entity.copySync(p.join(to.path, '.gitignore'));
|
||||
} else if (p.basename(entity.path) == 'gitattributes') {
|
||||
entity.copySync(p.join(to.path, '.gitattributes'));
|
||||
} else {
|
||||
entity.copySync(p.join(to.path, p.basename(entity.path)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue