- hunks equal if hash is same, regardless of line numbers
- send hash from front end when updating ownership
- use updated line numbers after hunk intersection match
This commit skips instrumenting the _handle parameter in the functions git_set_global_config and git_get_global_config for cleaner logs and improved clarity in the code.
I've been able to use the OpenAI library as they support being in the browser if you pass the "dangerouslyAllowBrowser" flag.
Anthropics don't have any interest in supporting browers making API calls and causes sugnificant CORS problems, so I've made use of the Tauri HTTP library, so this commit also sets that up
- make `diff_file_to_hunks` take borrowed `FileDiff`
- improve readability of `get_applied_status`
- rename git::diff::Hunk -> git::diff::GitHunk to avoid confusion
- remove bubbling of hunk ownership (we don't use it)
- drop test for bubbling ownership
This is an integration commit for the virtual branches that GitButler is tracking.
Due to GitButler managing multiple virtual branches, you cannot switch back and
forth between git branches and virtual branches easily.
If you switch to another branch, GitButler will need to be reinitialized.
If you commit on this branch, GitButler will throw it away.
Here are the branches that are currently applied:
- Virtual branch 7 (refs/gitbutler/Virtual-branch-7)
branch head: 8111cbe7994127d7c50f2ba164d06ae34f1dd302
- gitbutler-app/src/project_repository/conflicts.rs
- gitbutler-app/src/virtual_branches/virtual.rs
- Virtual branch 8 (refs/gitbutler/Virtual-branch-8)
- gitbutler-app/src/project_repository/conflicts.rs
Your previous branch was: refs/heads/exec-stuff
The sha for that commit was: 2bd1e8748628648e96d925b3bdba7572ce9ae734
For more information about what we're doing here, check out our docs:
https://docs.gitbutler.com/features/virtual-branches/integration-branch