Skip to content

Commit 11acfe6

Browse files
committed
feat(misc): add additional project files
1 parent fb4191a commit 11acfe6

File tree

3 files changed

+89
-0
lines changed

3 files changed

+89
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/mvnw text eol=lf
2+
*.cmd text eol=crlf

.mvn/wrapper/maven-wrapper.properties

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
wrapperVersion=3.3.2
18+
distributionType=only-script
19+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.10/apache-maven-3.9.10-bin.zip

quick-commit.sh

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/bin/bash
2+
3+
# Quick Git Commit Script
4+
# Usage: ./quick-commit.sh "your commit message" [type]
5+
# Types: feat, fix, docs, test, refactor, style, chore
6+
7+
set -e
8+
9+
# Colors
10+
GREEN='\033[0;32m'
11+
YELLOW='\033[1;33m'
12+
BLUE='\033[0;34m'
13+
RED='\033[0;31m'
14+
NC='\033[0m'
15+
16+
# Default commit type
17+
COMMIT_TYPE="feat"
18+
19+
# Parse arguments
20+
if [ $# -eq 0 ]; then
21+
echo -e "${RED}Usage: $0 \"commit message\" [type]${NC}"
22+
echo -e "${YELLOW}Types: feat, fix, docs, test, refactor, style, chore${NC}"
23+
echo -e "${BLUE}Example: $0 \"add user authentication\" feat${NC}"
24+
exit 1
25+
fi
26+
27+
COMMIT_MESSAGE="$1"
28+
if [ $# -eq 2 ]; then
29+
COMMIT_TYPE="$2"
30+
fi
31+
32+
# Validate commit type
33+
case $COMMIT_TYPE in
34+
feat|fix|docs|test|refactor|style|chore)
35+
;;
36+
*)
37+
echo -e "${RED}Invalid commit type: $COMMIT_TYPE${NC}"
38+
echo -e "${YELLOW}Valid types: feat, fix, docs, test, refactor, style, chore${NC}"
39+
exit 1
40+
;;
41+
esac
42+
43+
echo -e "${BLUE}🚀 Quick commit with type: ${COMMIT_TYPE}${NC}"
44+
45+
# Check for changes
46+
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
47+
echo -e "${YELLOW}⚠ No changes to commit${NC}"
48+
exit 0
49+
fi
50+
51+
# Show what will be committed
52+
echo -e "\n${YELLOW}Files to be committed:${NC}"
53+
git status --short
54+
55+
# Add all changes
56+
git add .
57+
58+
# Create commit message
59+
FULL_MESSAGE="${COMMIT_TYPE}: ${COMMIT_MESSAGE}"
60+
61+
# Commit
62+
git commit -m "$FULL_MESSAGE"
63+
64+
echo -e "\n${GREEN}✅ Committed: ${FULL_MESSAGE}${NC}"
65+
66+
# Show recent commits
67+
echo -e "\n${BLUE}Recent commits:${NC}"
68+
git log --oneline -5

0 commit comments

Comments
 (0)