-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds 10.16 / 11.0.0 Images to the Gallery, Updates theme color to Hex…
…ley Red. Bumps DarwinOCPkg to 1.0.1, Adds .gitignore to DarwinUDK
- Loading branch information
1 parent
d28e6c1
commit 8820d3c
Showing
14 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
Submodule DarwinOCPkg
updated
13 files
Submodule DarwinUDK
updated
5 files
+ − | .DS_Store | |
+26 −0 | .gitignore | |
+ − | Arch/.DS_Store | |
+ − | Debian/.DS_Store | |
+ − | Fedora/DUDK-Firmware-1.0.0-2.fedora.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
# Stage all changes | ||
git add --all | ||
|
||
# Read commit message | ||
echo "Enter Commit Details:" | ||
read varcommit | ||
|
||
# Function to add co-authors | ||
coauthors=() | ||
add_coauthor() { | ||
echo "Do you want to add a Co-Author? (yes/no)" | ||
read response | ||
|
||
if [ "$response" = "yes" ]; then | ||
echo "Enter Co-Author's Name:" | ||
read author_name | ||
echo "Enter Co-Author's Email:" | ||
read author_email | ||
|
||
coauthors+=("Co-authored-by: $author_name <$author_email>") | ||
|
||
add_coauthor # Recursive call for adding more co-authors | ||
fi | ||
} | ||
|
||
add_coauthor | ||
|
||
# Construct the commit message with co-authors | ||
commit_message="$varcommit" | ||
for coauthor in "${coauthors[@]}"; do | ||
commit_message+=$'\n\n'"$coauthor" | ||
done | ||
|
||
# Make the commit | ||
git commit -m "$commit_message" | ||
|
||
# Confirm commit | ||
if [ "${#coauthors[@]}" -gt 0 ]; then | ||
echo "Commit \"$varcommit\" with co-authors created successfully." | ||
else | ||
echo "Commit \"$varcommit\" created successfully." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
DarwinKVM Docs Version 2.0.0~prerelease</br> | ||
Copyright © 2024 RoyalGraphX. Distributed by a <a href="https://github.com/royalgraphx/DarwinKVM/blob/main/LICENSE">BSD 3-Clause License</a>.</br> | ||
Last Modified: Wed, 13 Jul 2024 19:35:01 CDT | ||
Last Modified: Sat, 7 Sep 2024 18:00:00 CDT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,39 @@ | ||
#!/bin/bash | ||
|
||
git add --all | ||
echo "Enter Commit Details:" | ||
read varcommit | ||
|
||
coauthors=() | ||
add_coauthor() { | ||
echo "Do you want to add a Co-Author? (yes/no)" | ||
read response | ||
|
||
if [ "$response" = "yes" ]; then | ||
echo "Enter Co-Author's Name:" | ||
read author_name | ||
echo "Enter Co-Author's Email:" | ||
read author_email | ||
|
||
coauthors+=("Co-authored-by: $author_name <$author_email>") | ||
|
||
add_coauthor # Recursive call for adding more co-authors | ||
# Function to check if the current branch tracks a remote branch | ||
check_tracking() { | ||
if git rev-parse --abbrev-ref --symbolic-full-name @{u} &> /dev/null; then | ||
return 0 | ||
else | ||
echo "The current branch does not track a remote branch. Please set the upstream branch using:" | ||
echo "git branch --set-upstream-to=<remote>/<branch> <branch>" | ||
exit 1 | ||
fi | ||
} | ||
|
||
add_coauthor | ||
# Function to check if there are uncommitted changes | ||
check_uncommitted_changes() { | ||
if ! git diff-index --quiet HEAD --; then | ||
echo "You have uncommitted changes. Please commit them before pushing." | ||
exit 1 | ||
fi | ||
} | ||
|
||
# Construct the commit message with co-authors | ||
commit_message="$varcommit" | ||
for coauthor in "${coauthors[@]}"; do | ||
commit_message+=""$'\n'$'\n'"$coauthor" | ||
done | ||
# Function to attempt to push changes | ||
attempt_push() { | ||
if git push; then | ||
echo "Changes pushed to the remote repository successfully." | ||
else | ||
echo "Failed to push changes. Please check your connection and remote repository status." | ||
exit 1 | ||
fi | ||
} | ||
|
||
if [ "${#coauthors[@]}" -gt 0 ]; then | ||
git commit -m "$commit_message" | ||
else | ||
git commit -m "$varcommit" | ||
fi | ||
# Check if the current branch tracks a remote branch | ||
check_tracking | ||
|
||
git push | ||
# Check for uncommitted changes | ||
check_uncommitted_changes | ||
|
||
if [ "${#coauthors[@]}" -gt 0 ]; then | ||
echo "Commit \"$varcommit\" with co-authors pushed successfully." | ||
else | ||
echo "Commit \"$varcommit\" pushed successfully." | ||
fi | ||
# Attempt to push changes | ||
attempt_push |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.