Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Git handling

Featured Replies

Well, longsleep suggested using Quilt a while ago (haven't looked into myself yet)

I saw this. I've read quilt documentation, and if I understood it correctly, quilt requires explicit configuration in order to work, so simple "drop patch file in a directory and it will be picked up automatically in LC_ALL=C sorting order" and overriding base patches by placing file with same name in userpatches will not work without extra configuration. Current stateless patching code is simple but easy to understand and easy to work with IMO.

  • Author

I came out with this solution:

# define this @start
git config --global user.name 'John Doe' 
git config --global user.email johndoe@somedomain.com

# at source tree
git add .
git diff --staged > userpatches/$family-$unixtime.patch.disabled

# check if there are changes
if  patch not empty echo "There was changes"
        patch is here ->
        do you want to include it into build?
        yes -> enable ()
fi
# go back 
git reset --soft HEAD~ 

# after each compile execute this at source
find . -name \*.rej | xargs rm -f
git add .
git commit

  • Author

Main point is to create a patch if sources has been changed manually, on the next run.

 

This must be under some switch of course - "developer / debug mode". Now we have this:

 

FORCE_CHECKOUT="yes"                                    # ignore manual changes to source

 

but if set to "NO" it of course does not work if we run patch series once again. And we need to extract our manual change ...

Then maybe do something like this

If this new parameter is set

# force checkout sources
# apply usual patches
# commit changes
echo "Now make your changes in $LINUXSOURCEDIR"
echo "Press <Enter> after you are done"
read
cd $LINUXSOURCEDIR
git add .
git diff --staged > $SRC/userpatches/patch/99-$LINUXFAMILY-$(date +'%d.%m.%Y').patch
echo "Grab your patch from $SRC/userpatches/patch/99-$LINUXFAMILY-$(date +'%d.%m.%Y').patch"
# proceed with compilation

Speaking of git handling - why are we creating new working copy on each update instead of pulling changes into existing tree (I mean in case we are checking out branches, not tags)?

Not only "fetch_from_github" looks unnecessarily complicated, it also appears to be broken at least for sunxi-tools repository.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.