aboutsummaryrefslogtreecommitdiff
path: root/doc/git-permalink.en.1 (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-06-19Add support for pagure.ioEuAndreh1-0/+7
I only added support for HTTPS remotes, because I'm not willing to go out of my way for creating a Fedora account just to see what an SSH URL looks like. I guess just the prefix would change, but repositories not named "A/B.git" but just "B.git" would need more (trivial) treatment, which I'm not willing to do. It shall stay this way until a contribution comes to improve it, or Pagure stops making it hard for me to implement this.
2021-06-19Add support for codeberg.orgEuAndreh1-0/+8
2021-06-19Add support for notabug.orgEuAndreh1-21/+31
2021-06-19aux/workflow/manpages.sh: Suppress ShellCheck warningsEuAndreh1-0/+2
2021-06-19TODOs.md: Mark #task-9e842529-b782-84a2-1d0a-801a8766cb7e as DONEEuAndreh1-3/+7
2021-06-19Add aux/workflow/manpages.sh to install, uninstall and generate HTML from ↵EuAndreh4-31/+62
translated manpages
2021-06-19aux/workflow/assert-manpages.sh: Mark as executableEuAndreh1-0/+0
2021-06-19TODOs.md: Update #task-9e842529-b782-84a2-1d0a-801a8766cb7e DOING statusEuAndreh1-2/+5
2021-06-19Leverage po4a to translate manpagesEuAndreh13-17/+1943
2021-06-17TODOs.md: Mark #task-9e842529-b782-84a2-1d0a-801a8766cb7e as DOINGEuAndreh1-1/+5
2021-06-17src/git-permalink.sh: Translate program output to pt, fr and eoEuAndreh2-17/+86
The choice of implementation was very basic: Use strings in the script itself rather than relying on external tools. Compared to a compiled C program using, say, gettext.3, an sh script could also depend on it, but at runtime. An equivalent C code would require the gettext.3 dependency, but at compile time. After compilation, the code required for doing the translation is already on the binary, while an sh script would need gettext.1 to run gettext.1 commands while it executes, such as "gettext -s 'MSG_ABC'". Bash has a very appealing feature: using $"" does a lookup and translates the string. In other words, $"" runs gettext for you, without the script requiring gettext.1, just Bash. As tempting as it was, I chose not to rely on Bash. I preferred the cost of an ad-hoc solution over requiring Bash over POSIX sh. The final solution is simple enough for the git-permalink.1 program, but wouldn't scale for bigger scripts. Strings are placed together for translation, and no external tool is used for this. Due to the way that strings are now given to printf.1, ShellCheck complains a lot about those strings, alonside saying that the string translation variables are unused. They actually are used, but hidden behind an eval. Overall I'm satisfied with the solution, but I probably won't follow the same path for the manpages, and will choose something like po4a for it, instead.
2021-06-17Makefile: Use mkdir+cp over installEuAndreh1-1/+2
TIL: install isn't POSIX.
2021-06-17Makefile: Ignore failure when creating ./git-permalink fileEuAndreh1-3/+2
In case of failure, a "make clean" will fix it.
2021-06-17Update aux/workflow/assert-changelog.shEuAndreh3-6/+9
2021-06-17README.md: s/Extratools/Extra tools/EuAndreh1-1/+1
2021-06-16Makefile: Remove .PHONY targetEuAndreh1-2/+0
2021-06-16doc/git-permalink.1: Add period at the end of NAMEEuAndreh1-1/+1
2021-06-16Makefile: Add $(manpages) as a dependency of the "public" targetEuAndreh1-1/+1
2021-06-16aux/workflow/assert-manpages.sh: Fix link to mailing listEuAndreh2-2/+2
2021-06-16Show -h and -V flags on usage textEuAndreh2-2/+2
2021-06-16aux/workflow/assert-changelog.sh: Assert link exists in CHANGELOGEuAndreh1-0/+9
2021-06-16aux/workflow/preamble.md: Join first and second paragraphsEuAndreh1-3/+1
2021-06-16aux/workflow/preamble.md: Link only to homepageEuAndreh1-1/+1
2021-06-16CHANGELOG.md: Add link to homepageEuAndreh1-0/+2
2021-06-16s/Home page/Homepage/EuAndreh4-4/+4
2021-06-16TODOs.md: Add #task-9e842529-b782-84a2-1d0a-801a8766cb7eEuAndreh1-0/+3
2021-06-16TODOs.md: Mark #question-e3b7748d-2e67-b60b-e966-ad80c754ea58 as DONEEuAndreh1-1/+5
2021-06-16doc/git-permalink.1: Stop using ".P", use empty lines insteadEuAndreh2-90/+89
2021-06-16TODOs.md: Add #question-e3b7748d-2e67-b60b-e966-ad80c754ea58EuAndreh1-0/+31
2021-06-14aux/: UpdateEuAndreh7-26/+101
2021-06-14aux/guix/manifest.scm: Remove unused packagesEuAndreh1-3/+0
2021-06-14doc/git-permalink.1: Fix links at the bottomEuAndreh1-10/+12
2021-06-14Makefile: Use pandoc to generate HTML version of manpagesEuAndreh2-3/+3
2021-06-14README.md: Add link to git-send-email.ioEuAndreh1-1/+5
2021-06-13Release v0.1.0v0.1.0EuAndreh3-1/+10
2021-06-13README.md: Point to license file in the source code itselfEuAndreh1-1/+1
2021-06-13README.md: Remove duplicate entry on usage sectionEuAndreh1-2/+0
2021-06-13README.md: Point to copy of license in the source code repository itselfEuAndreh1-1/+1
2021-06-12TODOs.md: Mark #task-6e6f917f-26ad-09fd-9a09-84b5df0f3ea4 as DONEEuAndreh1-1/+5
2021-06-12Makefile: Add aux/workflow/assert-manpages.shEuAndreh2-0/+45
2021-06-12doc/git-permalink.1: Write initial versionEuAndreh1-0/+157
2021-06-12TODOs.md: Mark #task-1e18a7cc-1055-bd09-3060-c03292ba583b as DONEEuAndreh1-1/+10
2021-06-12tests/cli-opts.sh: Remove behaviour testEuAndreh1-25/+0
The test that was removed relies on how the repository was clone. For example, the CI clone the repository as a remote folder, and uses that for the origin remote. The test fails because of that, and instead of trying to fix it, I removed it.
2021-06-12Makefile: Actually generate manpages HTMLEuAndreh1-0/+1
2021-06-12TODOs.md: Add #task-1e18a7cc-1055-bd09-3060-c03292ba583bEuAndreh1-0/+7
2021-06-12README.md: Fix markdown linksEuAndreh1-1/+4
2021-06-12Revert "tests/xdg-open: Remove unused file"EuAndreh2-0/+10
This reverts commit d3faf9644490a191a16c148a3f4f865b730e5188. The file was not actually unused, but used in tests to avoid side effects when running them.
2021-06-12src/git-permalink.sh: Fix bad treatment of -p flagEuAndreh2-16/+27
2021-06-12tests/xdg-open: Remove unused fileEuAndreh2-9/+0
2021-06-12src/git-permalink.sh: Fix ShellCheck errorsEuAndreh1-1/+4