Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git staging script improvements and general cleanup #209

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

rdswift
Copy link
Collaborator

@rdswift rdswift commented Sep 2, 2023

Summary

This is a…

  • Correction
  • Addition
  • Restructuring
  • Minor / simple change (like a typo)
  • Other

Reason for the Change

General cleanup and add command line options to git file staging script.

Description of the Change

Changes include:

  • Rename stage_translation_files.py to gitstage.py
  • Add command line options to gitstage.py
  • Refactor and optimize gitstage.py
  • Add module docstring to conf.py
  • Remove unnecessary subscript in setup.py

The help for gitstage.py is:

usage: gitstage.py [-h] [-r] [-c [{none,changed,all}]] [-s] [-d] [-f] [-a] [-w]

options:
  -h, --help            show this help message and exit
  -r, --rst             also stage rst files
  -c [{none,changed,all}], --comparison-display [{none,changed,all}]
                        none = don't show any diffs, changed = show only changed diffs (default), all = show all diffs
  -s, --silent          supress all program output
  -d, --dry-run         don't stage the files (report only)
  -f, --files-save      save the git output to files
  -a, --about           display information about the script
  -w, --warranty        display warranty information

Additional Action Required

None.

@rdswift rdswift added enhancement New feature or request setup Project software or configuration labels Sep 2, 2023
@rdswift rdswift force-pushed the file_staging_script_improvements branch from c53581f to f571961 Compare September 2, 2023 00:11
- Rename `stage_translation_files.py` to `gitstage.py`
- Add command line options to `gitstage.py`
- Refactor and optimize `gitstage.py`
- Add module docstring to `conf.py`
- Remove unnecessary subscript in `setup.py`
@rdswift rdswift force-pushed the file_staging_script_improvements branch from ca3fd47 to b5c8a12 Compare September 12, 2023 21:07
@rdswift rdswift merged commit d52eb99 into metabrainz:master Sep 12, 2023
1 check passed
@rdswift rdswift deleted the file_staging_script_improvements branch September 12, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request setup Project software or configuration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants