Commit Graph

138 Commits

Author SHA1 Message Date
Kiril Videlov
acf487a907 fix line context for commit diffs
when a file is new, we cant expect the parent commit to have the file
2024-01-15 22:29:10 +02:00
Kiril Videlov
6d96b0bf23 🔨 chore: fix out of bounds error in context_before loop 2024-01-15 15:37:22 +02:00
Kiril Videlov
7d9360662f 🐛 fix: off-by-one error in context lines calculation 2024-01-15 15:22:39 +02:00
Kiril Videlov
f5da2f012d 🐛 fix: fix index out of bounds error in context line generation 2024-01-15 15:22:39 +02:00
Nikita Galaiko
e70cf60cca ensure key is file 2024-01-15 09:45:40 +01:00
Nikita Galaiko
cc17805694 validate preferred key on the backend 2024-01-15 08:19:54 +01:00
Kiril Videlov
90e71e6458 use zero context hunks internally
Use hunks with zero context lines for virtual branch ownership. Reconstruct the context lines before returning hunks to the frontend
working on tests WIP
handle new files
cleanup comments
skip binary files
🐛 fix: add trailing newline to diff string in hunk_with_context function
handle empty diffs
fix diff header expectations
2024-01-14 23:42:34 +02:00
Kiril Videlov
5b7f63739b 🔨 chore: update remote URLs in tests to match new repository location 2024-01-13 17:40:47 +01:00
Nikita Galaiko
ab7e4eb73f
Merge pull request #2234 from gitbutlerapp/push-all-refs
Push all refs
2024-01-12 09:04:25 +01:00
Nikita Galaiko
43b071fb18 do not hide network error 2024-01-12 08:56:29 +01:00
Nikita Galaiko
fd3b443899 avoid race conditions by using timestamp instead of bool 2024-01-11 15:39:30 +01:00
Nikita Galaiko
38647d20a5 refactor: is_default -> selected_for_changes 2024-01-11 14:58:57 +01:00
Nikita Galaiko
3fd0936f54 fix: distribute hunks to the correct virtual branch based on default branch position 2024-01-11 12:37:50 +01:00
Nikita Galaiko
c376549a1f feat: add support for setting a virtual branch as the default branch 2024-01-11 10:38:22 +01:00
Nikita Galaiko
e1ee69a348 fix integrating fully merge branch while being behind 2024-01-10 12:37:23 +01:00
Nikita Galaiko
5c49311a49
Merge pull request #2214 from gitbutlerapp/remove-wd-reader
Remove wd reader
2024-01-10 09:55:03 +01:00
Nikita Galaiko
3eb3a40097 do not lock project directory 2024-01-10 09:49:37 +01:00
Nikita Galaiko
fb858fa936 refactor: simplify tree walk callback and use custom TreeWalkResult 2024-01-10 09:32:43 +01:00
Nikita Galaiko
a22319009f use batch write for virtual branches 2024-01-08 09:02:19 +01:00
Nikita Galaiko
11f4956503 sessions writer to use batch writer 2024-01-08 09:02:19 +01:00
Nikita Galaiko
9b00ef5339 use lock in writer 2024-01-08 09:02:19 +01:00
Nikita Galaiko
9070bb3373 use branch in branch target reader 2024-01-08 09:02:19 +01:00
Nikita Galaiko
118f598845 use batch in branch reader 2024-01-08 09:02:19 +01:00
Nikita Galaiko
91c1a86bda read files via batch reader 2024-01-08 09:02:19 +01:00
Nikita Galaiko
118ebe9654 use batch reader for sessions 2024-01-08 09:02:19 +01:00
Nikita Galaiko
49af066180 satisfy clippy 2024-01-08 09:02:19 +01:00
Nikita Galaiko
bcbf2f4d5e use batch reader for deltas reader 2024-01-08 09:02:19 +01:00
Nikita Galaiko
6c6c86de82 implement reader::batch that auto-locks directories 2024-01-08 09:02:19 +01:00
Nikita Galaiko
b6a8411841 lock::Dir implementation 2024-01-08 09:02:19 +01:00
Nikita Galaiko
b72c6317ef refactor Reader implementation to use enum instead of trait and remove unnecessary public functions 2024-01-08 09:02:19 +01:00
Nikita Galaiko
4e52086aa1 refactor writer module to remove unnecessary trait and consolidate methods 2024-01-08 09:02:19 +01:00
Nikita Galaiko
c032f01f82 chore: refactor branch and target readers to use generic reader type 2024-01-08 09:02:19 +01:00
Nikita Galaiko
ab93d48e73 remove unused is_dir method from Reader trait and its implementations 2024-01-08 09:02:19 +01:00
Mattias Granlund
b13132b4a6 Slugify branch names differently
- user requested / in branch names
2024-01-07 15:24:21 +01:00
Mattias Granlund
54773d0bfe Enable remote branch naming 2024-01-04 19:13:00 +02:00
Josh Junon
768934231d add gitbutler-core package and move IDs to it 2023-12-28 14:53:29 +01:00
Josh Junon
6397d12b89 don’t emit ANSI escapes to log files 2023-12-28 14:15:40 +01:00
Josh Junon
c5c51c9254 move packages/* into root as crates 2023-12-22 14:20:02 +01:00