Skip to content

Commit 0bf1211

Browse files
committed
refactor
- cargo fmt
1 parent 40c3ef6 commit 0bf1211

File tree

20 files changed

+35
-34
lines changed

20 files changed

+35
-34
lines changed

apps/desktop/src/components/UnifiedDiffView.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
const projectState = $derived(uiState.project(projectId));
6868
const exclusiveAction = $derived(projectState.exclusiveAction.current);
6969
70-
const isCommiting = $derived(
70+
const isCommitting = $derived(
7171
exclusiveAction?.type === 'commit' && selectionId.type === 'worktree'
7272
);
7373
@@ -214,7 +214,7 @@
214214
>
215215
<HunkDiff
216216
draggingDisabled={!draggable}
217-
hideCheckboxes={!isCommiting}
217+
hideCheckboxes={!isCommitting}
218218
filePath={change.path}
219219
hunkStr={hunk.diff}
220220
staged={selection.current.selected}

apps/desktop/src/lib/actions/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export type Trigger =
137137
export type Status =
138138
| { readonly type: 'completed' }
139139
| { readonly type: 'failed'; readonly subject: string }
140-
| { readonly type: 'interupted'; readonly subject: string };
140+
| { readonly type: 'interrupted'; readonly subject: string };
141141

142142
/** Represents a workflow that was executed by GitButler. */
143143
export class Workflow {

apps/desktop/src/lib/updater/updater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const UPDATE_INTERVAL_MS = 3600000; // Hourly
4242
* Note that the Tauri API `checkUpdate` hangs indefinitely in dev mode, build
4343
* a nightly if you want to test the updater manually.
4444
*
45-
* export TAURI_SIGNING_PRIVATE_KEY=does not
45+
* export TAURI_SIGNING_PRIVATE_KEY=doesnot
4646
* export TAURI_SIGNING_PRIVATE_KEY_PASSWORD=matter
4747
* ./scripts/release.sh --channel nightly --version "0.5.678"
4848
*/

apps/web/src/lib/components/service/FullscreenIllustrationCard.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import walkingSvg from '$lib/assets/splash-illustrations/walking.svg?raw';
2+
import walkingSvg from '$lib/assets/splash-illustrations/walkin.svg?raw';
33
import type { Snippet } from 'svelte';
44
55
interface Props {

crates/but-api/src/legacy/repo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ async fn handle_git_prompt_clone(prompt: String, url: String) -> Option<String>
6060

6161
#[but_api]
6262
#[instrument(err(Debug))]
63-
pub fn get_uncommited_files(project_id: ProjectId) -> Result<Vec<RemoteBranchFile>> {
63+
pub fn get_uncommitted_files(project_id: ProjectId) -> Result<Vec<RemoteBranchFile>> {
6464
let ctx = Context::new_from_legacy_project_id(project_id)?;
65-
gitbutler_branch_actions::get_uncommited_files(&ctx)
65+
gitbutler_branch_actions::get_uncommitted_files(&ctx)
6666
}
6767

6868
#[but_api]

crates/but-cherry-apply/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ use but_rebase::Rebase;
3434
use but_workspace::legacy::{StacksFilter, stack_ext::StackExt, stacks_v3};
3535
use gitbutler_branch_actions::update_workspace_commit;
3636
use gitbutler_stack::VirtualBranchesHandle;
37-
use gitbutler_workspace::branch_trees::{WorkspaceState, update_uncommited_changes};
37+
use gitbutler_workspace::branch_trees::{WorkspaceState, update_uncommitted_changes};
3838
use gix::{ObjectId, Repository};
3939
use serde::Serialize;
4040

@@ -139,7 +139,7 @@ pub fn cherry_apply(
139139

140140
{
141141
let new_workspace = WorkspaceState::create(ctx, perm.read_permission())?;
142-
update_uncommited_changes(ctx, old_workspace, new_workspace, perm)?;
142+
update_uncommitted_changes(ctx, old_workspace, new_workspace, perm)?;
143143
}
144144

145145
update_workspace_commit(&vb_state, ctx, false)?;

crates/but-server/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ async fn handle_command(
343343
"git_set_local_config" => legacy::repo::git_set_local_config_cmd(request.params),
344344
"check_signing_settings" => legacy::repo::check_signing_settings_cmd(request.params),
345345
"git_clone_repository" => legacy::repo::git_clone_repository_cmd(request.params).await,
346-
"get_uncommited_files" => legacy::repo::get_uncommited_files_cmd(request.params),
346+
"get_uncommitted_files" => legacy::repo::get_uncommitted_files_cmd(request.params),
347347
"get_commit_file" => legacy::repo::get_commit_file_cmd(request.params),
348348
"get_workspace_file" => legacy::repo::get_workspace_file_cmd(request.params),
349349
"find_files" => legacy::repo::find_files_cmd(request.params),

crates/but-worktrees/src/integrate.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use but_workspace::legacy::stack_ext::StackExt;
1111
use gitbutler_branch_actions::update_workspace_commit;
1212
use gitbutler_stack::{Stack, VirtualBranchesHandle};
1313
use gitbutler_workspace::branch_trees::{
14-
WorkspaceState, merge_workspace, move_tree, update_uncommited_changes,
14+
WorkspaceState, merge_workspace, move_tree, update_uncommitted_changes,
1515
};
1616
use gix::prelude::ObjectIdExt as _;
1717
use serde::{Deserialize, Serialize};
@@ -75,7 +75,7 @@ pub fn worktree_integrate(
7575
.stack
7676
.set_heads_from_rebase_output(ctx, status.rebase_output.references)?;
7777
let after = WorkspaceState::create(ctx, perm.read_permission())?;
78-
update_uncommited_changes(ctx, before, after, perm)?;
78+
update_uncommitted_changes(ctx, before, after, perm)?;
7979
let vb_state = VirtualBranchesHandle::new(ctx.project_data_dir());
8080
update_workspace_commit(&vb_state, ctx, false)?;
8181

crates/gitbutler-branch-actions/src/actions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,9 @@ pub fn create_virtual_branch_from_branch(
516516
)
517517
}
518518

519-
pub fn get_uncommited_files(ctx: &Context) -> Result<Vec<RemoteBranchFile>> {
519+
pub fn get_uncommitted_files(ctx: &Context) -> Result<Vec<RemoteBranchFile>> {
520520
let guard = ctx.exclusive_worktree_access();
521-
crate::branch::get_uncommited_files(ctx, guard.read_permission())
521+
crate::branch::get_uncommitted_files(ctx, guard.read_permission())
522522
}
523523

524524
pub fn upstream_integration_statuses(

crates/gitbutler-branch-actions/src/branch_manager/branch_creation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use gitbutler_repo::{RepositoryExt as _, rebase::gitbutler_merge_commits};
2020
use gitbutler_repo_actions::RepoActionsExt;
2121
use gitbutler_stack::{BranchOwnershipClaims, Stack, StackId};
2222
use gitbutler_time::time::now_since_unix_epoch_ms;
23-
use gitbutler_workspace::branch_trees::{WorkspaceState, update_uncommited_changes_with_tree};
23+
use gitbutler_workspace::branch_trees::{WorkspaceState, update_uncommitted_changes_with_tree};
2424
use serde::Serialize;
2525
use tracing::instrument;
2626

@@ -509,7 +509,7 @@ impl BranchManager<'_> {
509509

510510
// Permissions here might be wonky, just go with it though.
511511
let new_workspace = WorkspaceState::create(self.ctx, perm.read_permission())?;
512-
let res = update_uncommited_changes_with_tree(
512+
let res = update_uncommitted_changes_with_tree(
513513
self.ctx,
514514
workspace_state,
515515
new_workspace,

0 commit comments

Comments
 (0)