11 Commits

Author SHA1 Message Date
657721adc6 Update dart-git and stop using the Result class
Instead we're going to move back to standard exceptions.

Using a custom Result class has created far far more problems
- The Stacktraces aren't always right
- Sometimes one forgets to check the Result error
- All other exception throwing code needing to be converted to Results
- Non idiomatic Dart code

I think it's better to just go back to exceptions. They have their
problems, but overall, I think it's a better approach.
2023-11-24 14:03:30 +01:00
f4a1df6604 Move cloning code back into GitJournal
I want the git_setup code to only have the UI. Nothing else. The cloning
process for GitJournal is very specific to GitJournal. It doesn't need
to be that complicated for other projects.
2022-06-27 13:21:10 +02:00
00e6f39e67 Move setup code into its own package 2022-06-26 15:08:55 +02:00
6aa62090a9 Use a standard git clone when there is no history
Clearly dart-git is still quite buggy. Lets go back to libgit2, this was
quite a big mistake.
2022-05-16 12:08:15 +02:00
849b2874c8 Clone: Use dart-git's merge function
The code has been thoroughly tested with lots of unit tests, at this
point I'm more confident about it than libgit2 (for this particular
usecase)
2022-02-23 17:27:29 +01:00
a303dc88e8 Better unwind the exception 2022-02-20 02:14:26 +05:30
dbe2eada3a Add some tests for the cloning
Found one bug in the git_desktop!
2022-02-14 16:49:28 +05:30
3b2dcd7181 Bump dart-git
Now the repo needs to be explicitly closed. This way, we avoid opening
and closing the packfiles again and again. It results in the "Reading
Git History .." page taking about 40% less time.
2022-01-25 11:41:55 +01:00
e2b6d94eda analyzer: Fix unnecessry includes 2022-01-13 19:03:16 +01:00
f9271edad3 Upgrade to latest dart-git
Most of dart-git's operations are synchronous by default now. The async
functions run on another isolate.
2022-01-13 18:14:01 +01:00
c4ef1f569b Use flutter_lint
Instead of picking lint values. This way I don't need to routinely
looking at extra lints to enable.
2021-09-21 15:42:13 +02:00