Nikita Galaiko
0cac4c29c0
refactor: update type conversions and remove unnecessary clippy lints
2023-10-17 15:05:40 +02:00
extrawurst
23741716f9
fix vbranch flushing to not flush non-applied vbranches ( #1398 )
...
* fix vbranch flushing to not flush non-applied vbranches
* do not use `flush_vbranch_as_tree` when flushing all vbranches
2023-10-17 15:03:19 +02:00
extrawurst
9bbfda975e
use !any(f)
to simplify and remove allocating collect
2023-10-17 14:57:41 +02:00
Nikita Galaiko
99703261ea
Merge pull request #1399 from gitbutlerapp/use-github-token-for-fetching---pushing
...
use github token for fetching / pushing
2023-10-17 14:45:11 +02:00
Nikita Galaiko
94f257e8b1
satisfy clippy
2023-10-17 14:40:11 +02:00
Nikita Galaiko
8795a9dd2a
cargo fmt
2023-10-17 14:32:09 +02:00
Nikita Galaiko
15fb05e7a2
use github token for fetching / pushing
2023-10-17 14:19:47 +02:00
Nikita Galaiko
d721bc7bcb
Merge pull request #1397 from gitbutlerapp/Add-cargo-check-and-clippy
...
prettify scripts
2023-10-17 10:22:40 +02:00
Nikita Galaiko
5cf3fd931e
prettify scripts
2023-10-17 10:21:00 +02:00
Nikita Galaiko
29e4c90d12
Merge pull request #1389 from gitbutlerapp/Add-test-for-register-empty-new-file
...
Add test for register empty new file
2023-10-17 09:54:45 +02:00
Nikita Galaiko
a20963def2
rewrite git diff printing
2023-10-17 09:20:15 +02:00
Nikita Galaiko
9dbf36f8f9
correctly handle multiple empty file diffs
2023-10-16 16:36:14 +02:00
Nikita Galaiko
d75d60e36d
emit events for empty files
2023-10-16 16:35:57 +02:00
extrawurst
b36f0a76c1
also run clippy on tests
2023-10-16 16:24:53 +02:00
Nikita Galaiko
bc978f6e38
Merge pull request #1387 from gitbutlerapp/Add-test-for-update-base-branch
...
move more apply branch tests to integration
2023-10-16 15:41:59 +02:00
Nikita Galaiko
3a85984e51
remove debug logs
2023-10-16 15:34:19 +02:00
Nikita Galaiko
c896d2b8f2
correctly handle empty file diffs
2023-10-16 15:30:24 +02:00
Nikita Galaiko
3e575482a9
fixup
2023-10-16 15:15:29 +02:00
Nikita Galaiko
9f83b61b2b
move more apply branch tests to integration
2023-10-16 14:44:09 +02:00
Nikita Galaiko
a33857534d
Merge pull request #1386 from gitbutlerapp/Refactor-add-wd-path
...
do not use project_repository index while flushing
2023-10-16 13:33:42 +02:00
Nikita Galaiko
10adaa4593
do not use project_repository index while flushing
2023-10-16 13:25:42 +02:00
extrawurst
ae3a6f3ebe
feat: add flush_vbranches method to Controller struct ( #1383 )
...
* feat: add flush_vbranches method to Controller struct
The `flush_vbranches` method has been added to the `Controller` struct. This method allows flushing virtual branches as a tree for a specific project. It iterates over the virtual branches of the project and calls the `flush_vbranch_as_tree` function to flush each virtual branch. This method is used in the `Handler` struct to flush virtual branches for a project before flushing the session.
* cleanup error handling
* make controller async for consistency and block on the caller site
2023-10-16 11:18:01 +00:00
Nikita Galaiko
8dacd371a0
Merge pull request #1385 from gitbutlerapp/Refactor-test-file-read
...
revert alternates remove
2023-10-16 13:17:48 +02:00
Nikita Galaiko
008d7e7236
revert alternates remove
2023-10-16 13:09:07 +02:00
Nikita Galaiko
7c0b9a2150
Merge pull request #1384 from gitbutlerapp/Fix-build-session-tree-function
...
don't reference alternate odb when flushing session
2023-10-16 12:49:12 +02:00
Nikita Galaiko
228224f170
cargo fmt
2023-10-16 12:29:46 +02:00
Nikita Galaiko
bf9d9d499d
don't reference alternate odb when flushing session
2023-10-16 12:10:49 +02:00
Nikita Galaiko
37e6b9d87b
Merge pull request #1382 from gitbutlerapp/use-prebuilt-svelte-store-dependency
...
use prebuilt svelte-store dependency
2023-10-16 11:09:53 +02:00
Nikita Galaiko
e1a9ce1fba
use prebuilt svelte-store dependency
2023-10-16 11:03:24 +02:00
Kiril Videlov
31ab4c6fca
🎨 style: update commit reset button appearance and add tooltip
2023-10-16 09:36:10 +02:00
Kiril Videlov
d6edbc2187
🔧 fix: update connect-src CSP directive to include api.github.com for additional API endpoint access
2023-10-16 09:35:06 +02:00
Kiril Videlov
a2b699700b
🔨 chore: update commit reset button tooltip to remove warning about force push
...
The tooltip breaks the layout here for some reason
2023-10-16 09:27:56 +02:00
Kiril Videlov
53116d4740
🔧 fix: add Content Security Policy (CSP) for dev mode too
2023-10-14 20:03:23 +02:00
Kiril Videlov
53186737d5
🔧 fix: update CSP img-src to allow loading images from GitHub avatars
2023-10-14 20:03:00 +02:00
Nikita Galaiko
884ca537f9
Merge pull request #1373 from gitbutlerapp/Virtual-branch-2
...
make clippy check test code
2023-10-13 16:12:10 +02:00
Nikita Galaiko
cff22fbc66
fixup
2023-10-13 15:54:16 +02:00
Nikita Galaiko
de4942c945
fix clippy in tests
2023-10-13 15:33:18 +02:00
Kiril Videlov
f608758eae
fix formatting
2023-10-13 15:20:32 +02:00
Kiril Videlov
8f7bcac403
✨ feat: add support for creating pull requests and pushing commits with the option to create a pull request
2023-10-13 15:20:32 +02:00
Nikita Galaiko
eb17137bf2
make clippy check test code
2023-10-13 14:54:44 +02:00
Nikita Galaiko
04b9f7bd8b
Merge pull request #1364 from gitbutlerapp/Add-id-module
...
Add id module
2023-10-13 13:14:01 +02:00
Nikita Galaiko
b9b14bb921
resolve conflicts
2023-10-13 13:07:30 +02:00
Nikita Galaiko
45daddeaa3
more clippy fixes
2023-10-13 12:56:33 +02:00
extrawurst
9ead8a6133
align the context/error handling add_disk_alternate
2023-10-13 12:50:59 +02:00
Nikita Galaiko
8accaa1fec
typed virtual branch id
2023-10-13 12:50:05 +02:00
extrawurst
71010d24f7
extract tree flushing to reuse in flush_session
( #1357 )
2023-10-13 12:01:16 +02:00
extrawurst
977d441250
add local rust checks script
...
to simulate as much of the ci pipeline as possible
2023-10-13 11:53:06 +02:00
extrawurst
cf1bdabc82
update a bunch of crates, leaving tantivy for now as it breaks the build
2023-10-13 11:38:01 +02:00
Nikita Galaiko
a589b934a2
clippy fixes
2023-10-13 11:07:38 +02:00
extrawurst
8bd5772918
pin resolver version on workspace level to have deterministic build behaviour
2023-10-13 11:06:20 +02:00