Skip to content

Command push#51

Merged
adamgracikowski merged 21 commits into
developfrom
feature/command-push
Jan 11, 2026
Merged

Command push#51
adamgracikowski merged 21 commits into
developfrom
feature/command-push

Conversation

@adamgracikowski
Copy link
Copy Markdown
Contributor

@adamgracikowski adamgracikowski commented Jan 3, 2026

image

Testowane dla następujących przypadków:

  • puste repo (świeżo po operacji init i ustawieniu remote'a)
  • tylko jedna nowa gałąź (bez obiektów)
  • jedna gałąź do usunięcia
  • 1 lub więcej commitów ahead w stosunk do serwera
  • 1 lub więcej commitów behind w stusunku do serwera (non-fast-forward)

Konsolka:

push aktualizujący brancha

image

push usuwający brancha na serwerze

image

push, który nie może przejść, bo najpierw by musiał być pull

image

Ulepszyłem też polecenie fetch przy okazji.

Konsolka:

verbose:

image

bez verbose i nic nie ma do pobrania:

image

Comment thread cli/src/commands/clone.rs Outdated
Comment thread cli/src/commands/pull.rs
Comment thread cli/src/commands/pull.rs
Comment thread cli/src/commands/pull.rs Outdated
Comment thread cli/src/commands/push.rs
Comment thread cli/src/commands/push.rs Outdated
Comment thread engine/src/handlers/push/handlers.rs
Comment thread engine/src/network/protocols/receive_pack.rs Outdated
Comment thread engine/src/network/common/pkt_line.rs
@adamgracikowski adamgracikowski merged commit 19f2750 into develop Jan 11, 2026
1 check passed
@adamgracikowski adamgracikowski deleted the feature/command-push branch January 11, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants