Mailinglist Archive: yast-devel (50 mails)

< Previous Next >
[yast-devel] Moving Clients to 'lib' && Keeping the History
Hi,

You probably remember that Martin has moved code from installation
clients from src/clients to src/lib/installation/clients recently,
unfortunately this move has removed all the history from those new files
[#1][#2].

I've found a way how to move the content and still keep the history
[#3][#4], this is what I did:

1. Moved files from scr/clients to lib/users/clients with `git mv`
2. Pushed this change as a separate commit to my repo
3. Added new clients to scr/clients calling lib/users/clients/*
4. Adapted Makefile.am in src to rake (take) care about libs
5. Pushed again

The trick was to persuade git that I have just moved files from one
location to another. I've probably discovered America today, but it
still might be helpful to you :)

Bye
Lukas

#1
https://github.com/yast/yast-installation/blame/master/src/clients/clone_finish.rb
#2
https://github.com/yast/yast-installation/blame/master/src/lib/installation/clients/clone_finish.rb
#3
https://github.com/kobliha/yast-users/blob/make_skipping_user_intuitive/src/clients/inst_root_first.rb
#4
https://github.com/kobliha/yast-users/blame/make_skipping_user_intuitive/src/lib/users/clients/inst_root_first.rb

--

Lukas Ocilka, Systems Management (Yast) Team Leader
SLE Department, SUSE Linux
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups