User:Kim/Prototyping 2nd year/GitPub: Difference between revisions

From XPUB & Lens-Based wiki
Line 17: Line 17:
try python script >> better to turn into a program (pip install gitpub) using [https://docs.astral.sh/uv/ uv]
try python script >> better to turn into a program (pip install gitpub) using [https://docs.astral.sh/uv/ uv]
<br>
<br>
===where is the local information stored?===
in the repository, commit messages can be found in  
in the repository, commit messages can be found in  
<code>.git/logs/refs/heads/main</code> <br>
<code>.git/logs/refs/heads/main</code> <br>
Line 22: Line 23:
  0e55d65009ff9617a72b0eafc908e356a8344bb4 5567bfffaad5ab96941b2cd7ed8aa077c2df1e94 Kim Kleinert  
  0e55d65009ff9617a72b0eafc908e356a8344bb4 5567bfffaad5ab96941b2cd7ed8aa077c2df1e94 Kim Kleinert  
  <mail@kimkleinert.com> 1759126065 +0200 commit: r w o t synopsis
  <mail@kimkleinert.com> 1759126065 +0200 commit: r w o t synopsis
===how can I get it?===

Revision as of 17:56, 30 September 2025

pmomm: #1. gitpub

v 1

utilizing the Git API.

I manged to print a proof of concept version of my personal reader repository but ran into a lot of issues:

  • API needs personal token authentication (which limits it to personal use)
  • using curl (to json) is limiting in formatting options (v1 is very 'crafty')
  • sorting the files and directories is tricky and you prob. need to do it manually by passing numbers to the titles

v 2

I dont need the Gitlab APi, since most meta info is already stored in my local repository. try python script >> better to turn into a program (pip install gitpub) using uv

where is the local information stored?

in the repository, commit messages can be found in .git/logs/refs/heads/main
they are structured like this:

0e55d65009ff9617a72b0eafc908e356a8344bb4 5567bfffaad5ab96941b2cd7ed8aa077c2df1e94 Kim Kleinert 
<mail@kimkleinert.com> 1759126065 +0200 commit: r w o t synopsis

how can I get it?