Compare commits

..

39 Commits

Author SHA1 Message Date
gitea 96102c4854 HEAD (unreleased) since tag 2.0 2025-10-30 16:59:25 +01:00
gitea b526928257 Tag: 2.0 2025-10-30 16:59:24 +01:00
gitea 1ef75678a1 Tag: 1.28
Intermediate commits (oldest → newest):
- Partial + reformatting
- upgrade to latest OpenAI API usage and logging improvements
- refix
- Vibe coding :P
- Merge branch 'main' of https://github.com/migatu/conjurer
- fx
- fx
- ffx
- testing
- ttt
- fix
- aaa
- FX
- aaa
- sa
2025-10-30 16:59:23 +01:00
gitea a6ed8723a5 Tag: 1.27
Intermediate commits (oldest → newest):
- Merge branch 'main' of https://github.com/migatu/conjurer
- Update AI and librarian commands to use 'GENERAL' context"
- Added the following changes to the codebase:
- bgfx
- fx and upgd
- Latex incoming changes
- installer fix
- var fx
- fx to fx
- don't trust ai
- tectonic
- debug
- debug
- disable exc masking
- upgrade
- rollback
- Figure out
- aaa
2025-10-30 16:59:21 +01:00
gitea 2aeb3d286f Tag: 1.26
Intermediate commits (oldest → newest):
- Generated scripts
- new function
- more work needed
- Search client
- serverside
- added server side search
- M
- fix
- fix deploy
- zmiana nazwy
- Params of radio
- Watcher
2025-10-30 16:59:21 +01:00
gitea 6c292a5678 Tag: 1.25
Intermediate commits (oldest → newest):
- New command added that sets logging level dymnamically
- of course fix needed
- Fix
- refactor: comment out unused AutoIndex import and related code
- Add auth to ytdlp
- Modified spotipy for auth
- Fixes after reinstall
- fixx
- Add musician fixes
- Fix in default config
- How to setup radio
2025-10-30 16:59:20 +01:00
gitea f73fd703b7 Tag: 1.24
Intermediate commits (oldest → newest):
- Merge branch 'main' of https://github.com/migatu/conjurer
- Merge branch 'main' of https://github.com/migatu/conjurer
- BGFX
- Function for idv3 and bugfix
- Merge branch 'main' of https://github.com/migatu/conjurer
- Logs additional
- LGFIX
- FIXED!
- Arguments added to the utility.
- Fix old bug
- add exception handling
- Literowka
- Hej hoppsan!
- Add comment
- Fixc Fixc
- Fixit
- Inside joke very boomer much wow
- Fixing logging issues in music_functions.py and other_functions.py
- Maybe this will fix
- test
- test
- another attempt to fix the bug
- Maybe this is the fix ?
- Maybe fix
2025-10-30 16:59:19 +01:00
gitea db48605849 Tag: 1.23 2025-10-30 16:59:18 +01:00
gitea faa5de2a0c Tag: 1.22
Intermediate commits (oldest → newest):
- Fun addition
- BGFX
- fx
- aas
- saving repeatable promtp
- bugfix
- BGFX
- BGFX
- FX
- New deploy
- dsd
- DDD
- Jak wiele literowek mozna zrobic w dwoch slowach
- Testr
- kurwa serio
- serio kurwa ja pierdole niech to kurwa bedzie ostatnia poprawka debilnego błedu w tym pierdolonym kodzie
- 1111
- FX
- -
- Some would say it's ccr. But I'm not i*n.
- tcxy
- THis commit should be theoretically the last
- Fuck whoever designed dicts in python that way
- ied
- All thirteen
- FIX
- TEst
2025-10-30 16:59:17 +01:00
gitea 7cb3d61d72 Tag: 1.21
Intermediate commits (oldest → newest):
- Start of Armia Hammera
- Enum fix
- small fx
- Optional argument fix
- xxx
- fix
- Fix
- ADdded smth
- finished secret dm handling
- bgfx
- safe
2025-10-30 16:59:17 +01:00
gitea 1a33e569ff Tag: 1.20
Intermediate commits (oldest → newest):
- A niech spierdala
- Fix
- fz
- almost there
- and there
- tst
- fx
- nxtfx
- Maybe ready ?
- Deploy
- step forward
- Test
- aha
- Another attempt
- Another one
- Największy hit zespuło 100 tvarzy grzybiarzy - i nie jest o piosenka o zgubieniu czapeczki
- aaaaaaa
- Work ongoing.
- bold commiting at the end of the day
- :)
- fix
- Fix
- tst
- Fix ?
2025-10-30 16:59:16 +01:00
gitea 2841c45883 Tag: 1.19
Intermediate commits (oldest → newest):
- Rich presence
- Assets
- pop goes the pistol
- gx
- Rich presence
- Work ongoing - rich presence and ai assistant
- bgfx
- lgtstfx
2025-10-30 16:59:15 +01:00
gitea 5527a844a3 Tag: 1.18
Intermediate commits (oldest → newest):
- pls 11.11
- mood fixes
- Fajne laski na prawicy są :D :P
- Duplication error
- Fix silence
- silence fx 2
- Fixed live
- first test of secret channel
- tst
- txt
- tst
- Test
- FX
- FAAFO
- Start
- Logfix
- fx
- bgfx
2025-10-30 16:59:14 +01:00
gitea 308875f77e Tag: 1.17
Intermediate commits (oldest → newest):
- attachment test
- fx
- Batch fix
- work ongoing
- cat got more sleep
- Batch download
- FX
- fx
- Batch hopefully
- glbfx
- last fix
- Final fixes in radio
- Merge branch 'main' of https://github.com/migatu/conjurer into main
- Fixes
- Happy Fucking Indepence Day Poland!!!
2025-10-30 16:59:13 +01:00
gitea b8df466e6f Tag: 1.16
Intermediate commits (oldest → newest):
- moving api key to netrc
- New stuff incoming
- Manual external audition
- Let's get this effin party started
- test mic
- tst
- Test
- Test
- fix
- fx
- test
- Refactoring step one
- Deploy script for after refactor
- Fix and upgrade
- bg fx
- fx
- fx
- fx
- Main refactoring
- Deploy script refactor
- fx
- fx2
- bgfx
2025-10-30 16:59:12 +01:00
gitea af29b857b1 Tag: 1.15
Intermediate commits (oldest → newest):
- Testing transcribe
- Additions before wsl purge
- Transcribe cog
- Tst
- fx
- fx
- Fx
- Fix
- Testing for transcribe
- work
- Test
- Att2
- Att 3
- saving
- ffmpeg
- Fsink wsink
- fx
- msink
- tst
- Fix
- 2
- Events
- fx1
- fx2
- fix
- 11
- A
- TR
- Fix
- Fix
- Revert
- fx
- fx
- Fix
- fx
- fx
- fx
- fx
- aaa
- FX
- fx
- :S
- :)
- aaaa
- fx
- fgf
- Fx
- aa
- Fx
- ff
- aa
- as
- zzz
- fx
- :)
- fx
- fx
- addfs
- fa
- Test
- Fixtime
- FX
- Fix
- aa
- FX
- test
- Fa
- fix
- test
- fix
- fx
- aaa
- fix
- fx
- Hack na hacku hackiem pogania
- Fix fo hack
- Fix asyncio sleep
- tst
- tst
- 1
- tst 2
- ii
- Thread
- asa
- Fx
- Fix
- Fx test
- fx
- tst
- asynv
- async
- fx
- fx
- Test
- SAy
- ass
- Bugfix
- fx
- fx
- test
- fx
- fx
- fx
- fx
- Masha wants to code
- tesst
- test
- Fur ktosia!
- Last łan for todej mejbi
- test
- Fixing debug levels
- Clock tests
2025-10-30 16:59:12 +01:00
gitea 7fb69339df Tag: 1.14
Intermediate commits (oldest → newest):
- Music trackin upgrade
- fx
- Fx
- Metadata
- 1
- Fix
- Fixing time mismatch
- Port fix
- fx
- fx
2025-10-30 16:59:11 +01:00
gitea fdbc05c367 Tag: 1.13
Intermediate commits (oldest → newest):
- UPdate for music tracker
- Buffx
- Fix
- Fix
- tst fx
- Fx frmt
- fx frmt
- Fx frmt
- Now playing
- bgfx
- fx
- Fix tracker
- bgfx
- fx
- Fx
2025-10-30 16:59:07 +01:00
gitea 6a45bf8df0 Tag: 1.12
Intermediate commits (oldest → newest):
- Changes for too long messages handling
- Track name broadcast att 1
- Music tracker
- fx
- fx2
- fx
- logg
- fx
2025-10-30 16:59:07 +01:00
gitea a4d81738fe Tag: 1.11
Intermediate commits (oldest → newest):
- NEw util
- Audition
- Fix
- Fixed :)
- Added more logging
- Fix logging0
2025-10-30 16:59:06 +01:00
gitea b2af595122 Tag: 1.10
Intermediate commits (oldest → newest):
- fix of permissions
- path fix
- another approach
- test
- test2
- Test
- Fix
- Skip track
- fix
2025-10-30 16:59:05 +01:00
gitea 6f3eee90bb Tag: 1.9
Intermediate commits (oldest → newest):
- Merge branch 'main' of https://github.com/migatu/conjurer
- Restart radio script
- Radio restart serverside
- Merge branch 'main' of https://github.com/migatu/conjurer
- Typo fix ,
2025-10-30 16:59:04 +01:00
gitea aa0be5d905 Tag: 1.8 2025-10-30 16:59:03 +01:00
gitea a63368adb5 Tag: 1.7
Intermediate commits (oldest → newest):
- Streaming hls
- Fx bug
- Fxs
- Small fixes
- Revert fix
- Small improvements
- Fine tuning
- Fine tune
- Add microphone
- Fixing memory of Conjurer
- Local output
- Fix
- Fx
- Fine tuning
- Adding script logging current tracks in queue
2025-10-30 16:59:02 +01:00
gitea 95db8302e8 Tag: 1.6
Intermediate commits (oldest → newest):
- JINGLES!
- Skipping tracks
- testing skip
- This language is officially insane
2025-10-30 16:59:02 +01:00
gitea a8797df45c Tag: 1.5
Intermediate commits (oldest → newest):
- Hit list queue for radio
- fix
- Documentation of conjurer_librarian
- Reformatting of conjurer_librarian
- Documentation of conjurer_musician
- Formatting of conjurer_musician
- Documentation of radio_conjurer.liq
- Merge branch 'main' of https://github.com/migatu/conjurer
- Removal from tracking
- Fixing librarian result (#6)
- Potential bugfix for some lazycoding in spotipy... Another one. fuck it
- Music tunneling (#7)
- Even more logging in spotify download
- test requests
- Fine tuning
- Optimization bug fix #1
- Fix crossfade
- Crossfadeing ctnd
- Fix
- Starting work on librarian headless mode
2025-10-30 16:59:00 +01:00
gitea 806cada1c1 Tag: 1.4
Intermediate commits (oldest → newest):
- Music service (#5)
- Fine tuning of radiostation
- Logging fix in radio
- Logging fix
- fx
- fx
- fx
- Fix to deprecated
- Fine tuning
- Logging fix on conjurer_librarian
- Fix logging with rotation
- fixing favourites
2025-10-30 16:59:00 +01:00
gitea 04638c9141 Tag: 1.3
Intermediate commits (oldest → newest):
- Almost deployment versio - for full deployment change parameteres in search_bot
- Preparation for deployment
- Main bot (#1)
- Search webservice (#2)
- Music service (#3)
- FIx
2025-10-30 16:58:58 +01:00
gitea 2988bd8205 Tag: 1.2
Intermediate commits (oldest → newest):
- Music search move file server side att 1
- Deploy!
- Fix rotation and fix of playlist
- Serverside work of search
2025-10-30 16:58:58 +01:00
gitea 50986860e9 Tag: 1.1
Intermediate commits (oldest → newest):
- Coroutine fix
- Pornol dl 1
- Pornol dl2
2025-10-30 16:58:57 +01:00
gitea d914711559 Tag: 1.0
Intermediate commits (oldest → newest):
- New files for flask services
- Service
- Minor fix 2
- Waitress
- Linux conf files
- Service
- Bugfixing
- Waitress
- Install options
- Work on deployment
- Bugfixes
- Work on deployment
- name change and othre bugfixes
- Installer
- Test
2025-10-30 16:58:56 +01:00
gitea 1b3c0b8434 Tag: 0.8
Intermediate commits (oldest → newest):
- Parametryzacja "muzyki mojego ludu"
- Async wyszukaj
- More async
- And even more async
- Async fix
- Async
- +1
- -1
- Hejo
- Test chat gpt4
- Nope
- Fix
- Fix 2.0
- Fix
- Additional lines of code
2025-10-30 16:58:55 +01:00
gitea d20013c152 Tag: 0.7
Intermediate commits (oldest → newest):
- Playlist based on chat history
- Fix 1
- Fix 2
- Fix 2.6
2025-10-30 16:58:54 +01:00
gitea e6ccb5e48f Tag: 0.6
Intermediate commits (oldest → newest):
- Library update
- Upgrade gpt model
- Nowy lepszy trunk
- modified
- Kurwa bugfix pod windowsa
- Fixed playlist gen
- Mala poprawka na rozmiar plikow pamieci
- Funkcjonalnosc logowania incydentow w Absinth Eldritch Horror Hammertimespace Continuum
- Reakcje ladacznicy, poprawka na mention w reset the clock
- Dodana procedura asynchronicznej generacji iteratora oraz komentarz w jaki sposob inaczej przerobic fora na asynchroniczny. Przydatne ze wzgledu na to ze szukajka nadal blokuje heartbeat bota - co skutkuje warningnami i wyjatkami
- Linting
- Linting is done
2025-10-30 16:58:53 +01:00
gitea 3a843abccf Tag: 0.5
Intermediate commits (oldest → newest):
- Mention conjurer
- Fixes + upgrade GPT model
- Test heartbeat fix
- Nope. It did not happen
- GPT fixes
- Gpt fixes
- Token counter
- Token amount change
- Fix. Last.
- Fix. Was joking.
- Update fabryczka
2025-10-30 16:58:52 +01:00
gitea 75032b67d0 Tag: 0.4
Intermediate commits (oldest → newest):
- Create python-app.yml
- Create python-package.yml
- Various fixes
- Playlist based on chat history
- Additional logging
- Improvements
- ASync search and moving to fully asynchronous work + responses to config command
- Various fixes
- Test chat gpt4
2025-10-30 16:58:52 +01:00
gitea 87f06d6269 Tag: 0.3
Intermediate commits (oldest → newest):
- Added playlist display
- Bugfixy
- Linting
- Wrong encoding in settings.json
- Kolejna poprawka
- Fix of metadata loading
- Another fix
- Update settings and history
- Small fixes in the paths
2025-10-30 16:58:50 +01:00
gitea 0147b22000 Tag: 0.2
Intermediate commits (oldest → newest):
- Fixed version of spotify_dl
- I also modified yt_dlp. But I do not remember what I changed. Have fun
- Poprawiono obsluge rotowanych logow i troche ulepszono funkcje opowiadania o fabryczcce
- Fucking windows bugfix and playlist gen fix
2025-10-30 16:58:49 +01:00
gitea eba11cc901 Tag: 0.1 2025-10-30 16:58:49 +01:00
2 changed files with 297 additions and 1 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ sudo apt-get install docker-compose-plugin
`/mnt/conjurer`. `/mnt/conjurer`.
5. Start only the musician service: 5. Start only the musician service:
```bash ```bash
docker compose --profile musician up --build -d musician docker compose up --build -d musician
``` ```
Alternatively, duplicate `docker-compose.yml`, strip other services, and run Alternatively, duplicate `docker-compose.yml`, strip other services, and run
`docker compose up -d`. `docker compose up -d`.
+296
View File
@@ -0,0 +1,296 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Buduje nową gałąź z "próbkowanych" commitów na podstawie tagów z bieżącej gałęzi,
a na końcu dodaje stan bieżącego HEAD (jeśli nie jest otagowany).
Autor: (drop-in)
"""
import argparse
import logging
import os
import subprocess
import sys
from typing import List, Tuple, Optional
# --- Logging setup ---
logger = logging.getLogger("tag_branch_builder")
handler = logging.StreamHandler(sys.stdout)
formatter = logging.Formatter("%(levelname)s: %(message)s")
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.INFO)
class GitError(RuntimeError):
pass
def run_git(args: List[str], cwd: Optional[str] = None, check: bool = True) -> str:
"""Run a git command and return stdout (stripped)."""
cmd = ["git"] + args
logger.debug("Running: %s", " ".join(cmd))
try:
proc = subprocess.run(
cmd,
cwd=cwd,
check=False,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
text=True,
)
except Exception as e:
raise Exception("Nie udało się uruchomić gita.") from e
raise
if check and proc.returncode != 0:
logger.error("Git error (%s): %s", " ".join(cmd), proc.stderr.strip())
raise GitError(proc.stderr.strip())
return proc.stdout.strip()
def ensure_git_repo() -> None:
try:
run_git(["rev-parse", "--is-inside-work-tree"])
except Exception:
logger.exception("To nie wygląda na repozytorium git.")
raise
def ensure_clean_worktree() -> None:
# Untracked + changes
status = run_git(["status", "--porcelain"])
if status.strip():
raise GitError(
"Drzewo robocze nie jest czyste. Zacommituj/stashuj zmiany i spróbuj ponownie."
)
def current_branch() -> str:
# Returns branch or 'HEAD' when detached
ref = run_git(["rev-parse", "--abbrev-ref", "HEAD"])
return ref
def head_sha() -> str:
return run_git(["rev-parse", "HEAD"])
def sha_has_tag(sha: str) -> List[str]:
# tags pointing at sha
tags = run_git(["tag", "--points-at", sha])
return [t for t in tags.splitlines() if t.strip()]
def tags_merged_into(branch: str) -> List[str]:
out = run_git(["tag", "--merged", branch])
return [t for t in out.splitlines() if t.strip()]
def tag_commit_sha(tag: str) -> str:
return run_git(["rev-list", "-n", "1", tag])
def commit_unix_time(sha: str) -> int:
return int(run_git(["show", "-s", "--format=%ct", sha]))
def sort_tags_by_commit_time(tags: List[str]) -> List[Tuple[str, str, int]]:
triples = []
for t in tags:
sha = tag_commit_sha(t)
ts = commit_unix_time(sha)
triples.append((t, sha, ts))
triples.sort(key=lambda x: x[2]) # oldest first
return triples
def list_intermediate_messages(old_sha: Optional[str], new_sha: str) -> List[str]:
"""
Zwróć listę komunikatów commitów POŚREDNICH (wyłącznie) od old_sha do new_sha.
Kolejność: od najstarszego do najnowszego.
"""
if old_sha is None:
# Nie ma commitów pośrednich przed pierwszym tagiem
return []
# ancestry-path: tylko ścieżka od old_sha do new_sha (jeśli wiele rodziców)
# Zakres old_sha..new_sha zawiera new_sha, dlatego pominiemy go w output.
rng = f"{old_sha}..{new_sha}"
try:
out = run_git(
["log", "--format=%s", "--reverse", "--ancestry-path", rng], check=True
)
except GitError:
# Brak ścieżki (np. tag nie jest potomkiem old_sha) wtedy nie ma pośrednich
return []
msgs = [ln for ln in out.splitlines() if ln.strip()]
if msgs:
# Ostatnia pozycja może być new_sha (w praktyce git log na %s nie odróżnia, ale
# jeśli zakres zwróci message z new_sha na końcu, usuniemy go porównując SHA).
# Prostsze: usuń ostatni wpis, bo to najnowszy (new_sha).
msgs = msgs[:-1]
return msgs
def checkout_orphan_branch(new_branch: str) -> None:
run_git(["checkout", "--orphan", new_branch])
# Usuń wszystko z indeksu i roboczego (z wyjątkiem .git)
# Najpierw usuń śledzone:
run_git(["rm", "-r", "--quiet", "--cached", "--force", "."], check=False)
# Potem pliki robocze:
for root, dirs, files in os.walk(".", topdown=False):
# pomiń .git
if root.startswith("./.git") or root == ".git":
continue
for name in files:
try:
os.remove(os.path.join(root, name))
except FileNotFoundError:
pass
for name in dirs:
p = os.path.join(root, name)
if p == "./.git":
continue
try:
os.rmdir(p)
except OSError:
# Niepuste to OK, wyczyścimy przy checkout
pass
def replace_worktree_with_commit(sha: str) -> None:
"""
Nadpisz zawartość roboczą drzewem z commit-a sha.
"""
# Najpierw usuń aktualne pliki (również nieśledzone), potem wczytaj tree wybranego commita:
# 1) git checkout <sha> -- . (zapisze pliki do working tree + index)
# 2) git add -A
# Aby dopilnować usunięć: zrób czyszczenie przez git rm -r ., potem checkout.
run_git(["rm", "-r", "--quiet", "--ignore-unmatch", "."], check=False)
# Przywróć pliki ze wskazanego commita:
# Uwaga: jeśli repo ma submoduły/large files to wykracza poza zakres, ale zadziała dla standardowych plików.
run_git(["checkout", sha, "--", "."])
run_git(["add", "-A"])
def build_commit_message_for_tag(tag: str, intermediates: List[str]) -> str:
if not intermediates:
return f"Tag: {tag}"
lines = ["Tag: " + tag, "", "Intermediate commits (oldest → newest):"]
lines += [f"- {m}" for m in intermediates]
return "\n".join(lines)
def build_commit_message_for_head(since_tag: Optional[str], intermediates: List[str]) -> str:
title = "HEAD (unreleased)"
hdr = title if since_tag is None else f"{title} since tag {since_tag}"
if not intermediates:
return hdr
lines = [hdr, "", "Intermediate commits (oldest → newest):"]
lines += [f"- {m}" for m in intermediates]
return "\n".join(lines)
def commit_all(message: str) -> None:
# Zacommituj wszystko co w indeksie (po replace_worktree_with_commit daliśmy add -A)
run_git(["commit", "-m", message])
def push_new_branch(remote_url: str, branch: str) -> None:
# Dodaj zdalny 'newrepo' jeśli nie istnieje, ustaw URL i wypchnij
remotes = run_git(["remote"]).splitlines()
if "newrepo" not in remotes:
run_git(["remote", "add", "newrepo", remote_url])
else:
# podmień URL na wszelki wypadek
run_git(["remote", "set-url", "newrepo", remote_url])
run_git(["push", "-u", "newrepo", f"{branch}:{branch}"])
def main() -> int:
parser = argparse.ArgumentParser(
description="Zbuduj nową gałąź na podstawie tagów z bieżącej gałęzi."
)
parser.add_argument("new_branch", help="Nazwa nowej gałęzi do utworzenia")
parser.add_argument(
"--new-repo-url",
dest="new_repo_url",
default=None,
help="(Opcjonalnie) adres URL nowego zdalnego repo zostanie dodany jako 'newrepo' i wykonany push nowej gałęzi.",
)
parser.add_argument(
"-v", "--verbose", action="store_true", help="Bardziej gadatliwe logi"
)
args = parser.parse_args()
if args.verbose:
logger.setLevel(logging.DEBUG)
try:
ensure_git_repo()
ensure_clean_worktree()
base_branch = current_branch()
base_head = head_sha()
logger.info("Bieżąca gałąź: %s", base_branch)
logger.info("HEAD: %s", base_head[:12])
# Zbierz tagi osiągalne z bieżącej gałęzi
merged_tags = tags_merged_into(base_branch)
if not merged_tags:
logger.warning(
"Nie znaleziono tagów osiągalnych z bieżącej gałęzi. Gałąź zostanie zbudowana tylko z HEAD."
)
# Posortuj tagi po czasie commita
sorted_tags = sort_tags_by_commit_time(merged_tags)
# Sprawdź czy HEAD jest otagowany
head_tags = sha_has_tag(base_head)
head_is_tagged = bool(head_tags)
# Utwórz orphan branch
logger.info("Tworzę sierocą gałąź: %s", args.new_branch)
checkout_orphan_branch(args.new_branch)
prev_sha: Optional[str] = None
last_tag_name: Optional[str] = None
# Dla każdego tagu commit z jego zawartości
for tag_name, tag_sha, _ts in sorted_tags:
logger.info("Przetwarzam tag: %s (%s)", tag_name, tag_sha[:12])
replace_worktree_with_commit(tag_sha)
intermediates = list_intermediate_messages(prev_sha, tag_sha)
msg = build_commit_message_for_tag(tag_name, intermediates)
commit_all(msg)
prev_sha = tag_sha
last_tag_name = tag_name
# Jeśli HEAD nie jest dokładnie ostatnim tagiem dorzuć "unreleased"
if not head_is_tagged:
logger.info("Dodaję końcowy commit z bieżącego HEAD (unreleased).")
replace_worktree_with_commit(base_head)
inter = list_intermediate_messages(prev_sha, base_head)
msg = build_commit_message_for_head(last_tag_name, inter)
commit_all(msg)
else:
logger.info("HEAD jest oznaczony tagiem kończę na ostatnim tagu.")
# Push do nowego repo jeśli podano
if args.new_repo_url:
logger.info("Wypycham nową gałąź do: %s", args.new_repo_url)
push_new_branch(args.new_repo_url, args.new_branch)
logger.info("Zakończono pomyślnie.")
return 0
except GitError as ge:
logger.error("Błąd gita: %s", ge)
return 2
except Exception as e:
raise Exception("Nieoczekiwany błąd.") from e
return 1
if __name__ == "__main__":
sys.exit(main())