AI-Powered Git Commit Message Generator

0 downloads

askrobots_commitgen/show_py_files.sh
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/askrobots_commitgen.git
HTTPS
https://gitstable.com/git/askrobots/askrobots_commitgen.git
SSH
ssh://git@gitstable.com:2222/askrobots/askrobots_commitgen.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Create commit message adjusting OpenAI initialization and error handling. c0d2e25 2 years, 6 months ago History
show_py_files.sh · 515 bytes · 22 lines
1#!/bin/bash
2
3# Function to display file contents with timestamp
4display_file_contents() {
5 echo "File: $1"
6 echo "Last Modified: $(date -r $1)"
7 echo "----------------"
8 cat "$1"
9 echo
10 echo
11}
12
13if [ "$1" == "--recent" ]; then
14 # Display the most recently modified .py file
15 recent_file=$(ls -t *.py | head -n 1)
16 display_file_contents "$recent_file"
17else
18 # Loop through each .py file in the current directory
19 for file in *.py; do
20 display_file_contents "$file"
21 done
22fi