IRCloggy #git 2016-09-06

Logs Search ←Prev date Next date→ Channels Documentation

Provider of IRC logs since 2005.
WARNING: As Freenode became unjoinable and lost all warnings in topics, we cannot log channels on Freenode anymore.

2016-09-06

SporkWitch double quotes allow for variable expansion and things like newline; single quotes might treat \n as literals00:00
SporkWitch can never remember00:00
rominronin joined00:00
chigang_ left00:01
alexandrecvl SporkWitch: I am just testing..00:01
texasmynsted left00:01
quetz joined00:02
deadprez left00:02
alexandrecvl SporkWitch: It did not work. bitbucket shows me exactly this: Testing paragraphs:\nparagraph1 \n paragraph200:02
it prints \n as characters, not carriage return00:03
I am doing this in dos. would that be a problem?00:03
SporkWitch interesting...00:03
no idea, i use real operating systems00:03
bremner DOS is real mode.00:04
alexandrecvl I understand.00:04
durham joined00:05
durham left00:05
alexandrecvl Would you suggest another approach?00:05
durham joined00:05
rominronin left00:06
qpdb left00:07
qpdb joined00:07
mingrammer joined00:07
shmuli joined00:09
zacts left00:10
chris2 use -F ?00:10
ahr3n left00:11
chris2 or multiple -m, one for each paragraph00:11
paulh left00:12
mingrammer left00:12
Gsham left00:12
daurnimator joined00:12
deltab yeah, write the message to a file and use -F00:12
or pipe it in if that's convenient00:13
tanuki_tanuki00:16
shmuli left00:17
DieguezZ left00:18
harish left00:18
mycelium joined00:19
ruby_ left00:20
harish joined00:20
Gsham joined00:23
shmuli joined00:23
deadprez joined00:25
bmahe joined00:27
lolmac joined00:28
deadprez left00:29
thiago left00:30
dsdeiz left00:30
cyphase_eviltwin left00:31
dsdeiz joined00:31
vrishab joined00:31
mellernoia left00:31
shmuli left00:31
hahuang65 joined00:32
deadprez joined00:33
stamina joined00:35
cyphase joined00:35
hahuang65 left00:37
alexandrecvl left00:39
biotim joined00:40
l4v2 left00:41
catsup left00:41
up_the_irons left00:43
carif joined00:44
shinnya left00:44
up_the_irons joined00:46
Dispatch joined00:48
shmuli joined00:48
catsup joined00:49
stamina left00:49
SwiftMatt joined00:49
harish left00:51
Salander27 joined00:54
sangy left00:55
mns_ left00:55
dsantiago joined00:55
mns joined00:58
dodobrain joined00:59
sanscheese joined01:00
rominronin joined01:02
lolmac left01:02
rominronin left01:07
biotim left01:07
sangy joined01:08
lolmac joined01:09
aidalgol joined01:10
blackwind_123 left01:13
decimad_ joined01:14
fahadash left01:16
SwiftMatt left01:17
decimad left01:19
joki left01:19
arescorpio joined01:21
Opertus joined01:22
ShapeShifter499 left01:22
exarch left01:23
SwiftMatt joined01:23
Noldorin left01:23
Gsham left01:24
pks left01:26
Goplat joined01:26
mingrammer joined01:28
pks joined01:31
rgrinberg joined01:36
afuentes left01:36
aax left01:38
durham left01:38
kalkin- joined01:38
kalkin- hi01:39
gitinfo kalkin-: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.01:39
kalkin- left01:39
mingrammer left01:39
shmuli left01:39
kalkin- joined01:39
kalkin- I have a bare repo with a namespace foo on a server. when i connect for cloning with my client to the server the server executes GIT_NAMESPACE=foo git-upload my/dir.git01:40
On the client side the clone happens to work01:40
texasmynsted joined01:40
kalkin- but at the end you get an error remote HEAD refers to nonexistent ref, unable to checkout01:41
If i add -b master to git clone. I can circumvent this problem, but I want to fix it for real01:41
mycelium left01:42
kalkin- Btw: the namespaced repo was created by cloning an existing repo from github, doing git init --barre namespaced_repo.git, added as remote and did GIT_NAMESPACE=foo git push origin --mirror01:42
d^sh_ joined01:43
Salander27 left01:44
xocolatl joined01:45
ilbot3 left01:45
mizu_no_oto joined01:46
d^sh left01:46
xocolatl hey folks, I need some help. I did a git reset <hash> (I did NOT use --hard) and then to go back to how I was I did git checkout . but that didn't give me the commits I was expecting. please tell me I can recover them. this is a local-only repository so I can't just pull from a remote.01:47
fahadash joined01:47
cagedwisdom left01:47
Vampire0 joined01:48
ilbot3 joined01:48
Gsham joined01:49
clemf joined01:49
Ks3_ joined01:50
dalias joined01:50
shmuli joined01:50
Ks3_ left01:51
A5101 joined01:51
Vampire0_ left01:51
ochorocho__ joined01:51
HoierM joined01:51
clemf left01:52
xocolatl okay, I just learned about the reflog. whew!01:52
Remram[m] left01:53
Remram[m] joined01:53
Remram[m] left01:53
Remram[m] joined01:53
decimad_ left01:53
xocolatl hmm. that got me my content back, but it's all uncommitted.01:53
Noldorin joined01:54
andlabs left01:54
ochorocho__ left01:56
VagabondAzulien left01:56
Noldorin left01:57
kulelu88 left01:57
evanwang joined01:58
cagedwisdom joined02:00
clemf joined02:02
rominronin joined02:03
dalias left02:03
clemf left02:03
dalias joined02:05
kalkin- xocolatl: if you have a backup or nothing to loose you can just pick the right commit out of the reflog and do git reset --hard COMMIT02:06
d^sh_ left02:06
Dispatch left02:06
clemf joined02:07
jfelchner left02:08
rominronin left02:08
d^sh joined02:08
harish joined02:08
hexagoxel left02:11
Gsham left02:11
hexagoxel joined02:14
mizu_no_oto left02:14
clemf left02:14
jstimm joined02:14
mizu_no_oto joined02:14
nydel07 left02:15
clemf joined02:16
ASOLAr_ joined02:17
Gurkenglas left02:17
ahr3n joined02:19
clemf left02:20
clemf joined02:20
annoymouse4210 left02:21
ASOLAr_ left02:22
Hink left02:22
lolmac left02:22
Hink joined02:23
fstd_ joined02:24
clemf left02:24
andlabs joined02:24
kai_ joined02:25
kai_ left02:26
mingrammer joined02:26
checkItOut joined02:26
shmuli left02:27
ASOLAr joined02:27
fstd left02:28
fstd_fstd02:28
Gsham joined02:28
rchavik joined02:29
dreiss joined02:30
mingrammer left02:30
ASOLAr left02:31
Hink left02:32
hahuang65 joined02:33
CheckDavid left02:33
Hink joined02:34
lolmac joined02:34
zivester left02:34
zivester joined02:34
nydel07 joined02:35
clemf joined02:37
hahuang65 left02:37
harish left02:38
lagothrix joined02:38
romerocesar_ joined02:39
cqi joined02:39
clemf left02:39
mycelium joined02:40
Blackpajamas joined02:40
Blackpajamas left02:41
clemf joined02:41
Gsham left02:41
lagothri1 left02:41
Blackpajamas joined02:41
Blackpajamas left02:42
romerocesar left02:42
Blackpajamas joined02:42
clandestino joined02:43
clemf left02:43
mingrammer joined02:43
mizu_no_oto left02:44
sleepee left02:44
gravitron left02:44
gravitron joined02:44
clemf joined02:44
raijin left02:45
m0viefreak left02:46
clemf left02:46
HoierM left02:47
mycelium left02:47
star_prone joined02:47
rewt left02:48
clemf joined02:48
mehola left02:50
Blackpajamas left02:50
clemf left02:50
Blackpajamas joined02:52
ayjay left02:52
clemf joined02:52
star_prone left02:52
Dougie187 left02:53
clemf left02:57
chachasmooth left02:57
rewt joined02:58
clemf joined03:00
chachasmooth joined03:00
clandestino left03:01
clemf left03:01
thiago joined03:02
clemf joined03:02
aavrug joined03:03
kalkin- Back to my namespace problem. I solved it03:04
rominronin joined03:04
kalkin- git symbolic-ref refs/namespaces/foo/HEAD refs/namespaces/foo/refs/heads/master03:04
clemf left03:04
kalkin- The above command will link a head in the proper namespace to the master branch in this namespaces03:04
this fixes git clone03:05
GT4066 joined03:07
scott_sd joined03:07
chrisshattuck joined03:07
raijin joined03:08
clemf joined03:08
rominronin left03:09
bobtherealbob joined03:09
cagmz left03:11
trimosier joined03:11
gitinfo set mode: +v03:12
scott_sd hi, is set git config --global core.autocrlf false,but it's warning: CRLF will be replaced by LF03:12
i check my config , it does well in other centos , not work in my ubunt03:13
Vortex35 joined03:14
clemf left03:14
cagmz joined03:15
shmuli joined03:15
paulh joined03:15
clemf joined03:15
Vortex34 left03:16
realz left03:17
clemf left03:17
realz joined03:17
mizu_no_oto joined03:17
zacts joined03:18
shmuli left03:20
mehola joined03:21
sangy left03:21
sanscheese left03:21
ToBeCloud left03:25
Andrew_K joined03:27
kadoban joined03:28
scott_sdscottxu03:28
mehola left03:31
ruby_ joined03:31
scottxu hi, i set git config --global core.autocrlf false,but it's warning: CRLF will be replaced by LF in my ubunto system, And other centos system is work ok03:32
dreiss left03:32
_28_ria joined03:32
sangy joined03:34
raijin left03:35
Hink left03:35
ruby_ left03:35
Andrew_K left03:36
Andrew_K joined03:36
Hink joined03:37
mizu_no_oto left03:38
Hink left03:38
cqicqi|lunch03:39
Hink joined03:39
rvaldes joined03:39
bobtherealbob left03:41
zivester left03:42
RodrigoEduardo__ left03:43
raijin joined03:47
chrisshattuck left03:48
clemf joined03:48
raijin left03:48
clemf left03:50
B_H joined03:52
e14 left03:52
shirty left03:52
Bob8989 left03:53
ochorocho__ joined03:54
harish joined03:54
kn-928 joined03:54
dodobrain left03:56
B_H left03:56
dreiss joined03:56
kn-928 left03:56
dodobrain joined03:56
ochorocho__ left03:58
harish left03:59
daey_ joined04:01
nevodka left04:02
ayjay joined04:03
phanimahesh joined04:04
daey left04:05
daey_daey04:05
rominronin joined04:05
sanscheese joined04:05
BenderRodriguez joined04:07
sangy left04:09
blackwind_123 joined04:09
raijin joined04:09
Cabanossi left04:09
rominronin left04:10
paulh left04:10
Cabanossi joined04:12
paulh joined04:12
navidr joined04:12
hallamigo left04:13
SebastianFlyte left04:14
vuoto joined04:15
Blackpajamas left04:19
MattMaker joined04:20
dviola left04:21
Puffball left04:21
Puffball joined04:22
lvns joined04:25
mehola joined04:26
vuoto left04:28
snowkidind left04:28
leeN left04:28
rafalcpp_ left04:29
hahuang65 joined04:33
_ikke_ scottxu: Is there a .gitattributes file present?04:34
scottxu _ikke_, I modify the ~/.gitconfig and .git/config04:34
1 * text=auto04:35
2 *.css linguist-vendored04:35
3 *.less linguist-vendored04:35
ayjay left04:35
_ikke_ Line 104:35
lolmac left04:35
scottxu _ikke_ :this is my .gitattributes content04:35
_ikke_ that enables normalization for all files04:35
scottxu ok I fixed it to test04:36
r4z left04:36
scottxu in other centos, the .gitattributes have same content04:37
how can i set * text a value04:37
Andrew_K left04:38
hahuang65 left04:38
_ikke_ What do you mean?04:38
ahr3n left04:38
star_prone joined04:38
scottxu -ikke- , only delete the first line. or how to fixed04:39
* text=auto => * -text ?04:39
_ikke_ Yeah, that will specifically disable it for all files04:40
e14 joined04:40
_ikke_ for everyone04:40
scottxu Ok, thank you, i am to try04:40
deadprez left04:41
romerocesar joined04:42
deadprez joined04:42
ruby_ joined04:42
aidalgol left04:43
e14 left04:44
trelane joined04:44
romerocesar_ left04:45
cagmz_ joined04:47
deadprez left04:47
cagmz left04:49
Darren_ joined04:49
irqq left04:50
kadoban left04:51
lolmac joined04:54
star_prone left04:56
boombatower left04:57
cagmz_ left04:58
star_prone joined04:59
daey_ joined04:59
fiddlerwoaroof left05:00
byteflame left05:00
quetz left05:01
byteflame joined05:02
Andrew_K joined05:03
daey left05:03
daey_daey05:03
Aces_Charles joined05:03
star_prone left05:03
fiddlerwoaroof joined05:04
star_prone joined05:05
subhojit777 joined05:05
laumann joined05:06
fahadash left05:06
A5101 left05:06
rominronin joined05:06
star_prone left05:06
dodobrain left05:06
thiago left05:08
star_prone joined05:08
star_prone left05:09
trimosier left05:09
rominronin left05:11
foist left05:13
xocolatl left05:13
sdothum left05:15
Puffball left05:15
inflames left05:16
inflames joined05:17
syg_ joined05:17
syg__ joined05:17
syg__ left05:17
Puffball joined05:18
syg__ joined05:18
arescorpio left05:21
ruby_ left05:23
SebastianFlyte joined05:23
ruby_ joined05:23
spudowiar left05:24
MattMaker left05:24
MattMaker joined05:24
abyx left05:24
ruby_ left05:28
MattMaker left05:28
jeffreylevesque left05:28
nevodka joined05:28
tvw joined05:29
stuh84 joined05:29
ShapeShifter499 joined05:31
MattMaker joined05:33
MattMaker left05:35
tvw left05:37
lolmac left05:38
diogenese left05:43
Raging_Hog joined05:46
hahuang65 joined05:47
inflames left05:48
syg__ left05:48
syg_ left05:48
inflames joined05:49
lolmac joined05:49
stuh84 left05:49
laumann left05:54
ochorocho__ joined05:54
shmuli joined05:56
shmuli left05:56
shmuli joined05:56
_ng joined05:56
ochorocho__ left05:59
circ-user-OBsh3 joined05:59
zeroed joined05:59
zeroed left05:59
zeroed joined05:59
mohabaks joined06:00
shmuli left06:01
holodoc left06:01
nevodka left06:01
rscata joined06:04
JeroenT joined06:05
chele joined06:06
rominronin joined06:08
zeroed left06:08
zeroed joined06:08
zeroed left06:08
zeroed joined06:08
ljc joined06:08
Darren_ left06:08
madewokherd left06:09
rominronin left06:12
eduardas_m joined06:14
Macaveli joined06:17
ASOLAr joined06:17
holodoc joined06:18
rgrinberg left06:18
TheVoid joined06:19
Silenced joined06:20
Silenced left06:21
Silenced joined06:21
ASOLAr left06:22
jknetl joined06:24
jknetl left06:25
satya4ever joined06:26
Rodya_ left06:28
Rodya_ joined06:28
star_prone joined06:29
yuhlw_ joined06:30
diogenese joined06:30
chele hi guys i am checking this guide (https://www.git-scm.com/book/en/v2/Git-and-Other-Systems-Migrating-to-Git) out to migrate to git (from svn) and when it explains how to make remote branches to local git branches my refs/remotes/origin folder is empty, although the command git branch -r show the branches? What am i doing incorrect? Am I forced to recreate my branches to local git branches manually?06:34
Rodya_ left06:34
loopy left06:38
_ikke_ chele: branches can also be packed06:38
if git branch -r shows them, you have them locally06:38
(as remote tracking branches)06:38
dtux joined06:39
lolmac left06:39
Ratler_ left06:40
Ratler joined06:40
fees joined06:43
danslo joined06:43
SporkWitch left06:45
erguven joined06:46
chele _ikke_ so this means is still somehow bound to the svn. if i push now my git to a git server would the branches be pushed? or i have to clone this git project to another location and then push it to a git server ...06:46
SwiftMatt left06:46
Sceorem joined06:47
lolmac joined06:48
zeroed left06:49
submitnine joined06:49
zeroed joined06:52
osse chele: no, everything is normal06:53
chele: if git branch lists them, they are there no matter what goes on inside .git06:53
jceb joined06:55
star_prone left06:57
obiwahn i06:57
hi - we want to do some code review and have trouble to find the right commands06:57
there is bob who was on his branch (B) did some work and merged devel (D) from time to time into his branch06:58
ljc left06:59
mohabaks left06:59
obiwahn Now what do we need to do to find out what changes bob did. compared to devel?06:59
jknetl joined07:01
obiwahn ok i was really wondering that git diff D...B was not working07:01
but now that my coworker used origin/D he can do the review:)07:01
amcsi joined07:02
pR0Ps left07:03
chele osse so migration done when pushed to git server07:04
rasto left07:05
boushi left07:06
pR0Ps joined07:06
boushi joined07:06
rominronin joined07:07
mangolisk_ left07:09
cyan__ joined07:10
rasto joined07:11
Goplat left07:11
laumann joined07:11
d0nn1e left07:12
lvns left07:12
JeroenT left07:12
d0nn1e joined07:13
heftig_heftig07:15
delboy1978uk joined07:18
Alienpruts joined07:18
delboy1978uk can i echo out a file on another branches contents without checking it out?07:19
or on a specific commit rather07:19
gr_witygrawity07:19
osse delboy1978uk: git show commit:file07:20
JeroenT joined07:20
Opertus left07:21
GavinMagnus joined07:22
delboy1978uk osse: i just found that, thanks a lot all the same! :-)07:23
qt-x left07:24
shmuli joined07:24
shmuli left07:25
cyan__ left07:26
Thorn__Thorn07:27
dreiss left07:27
quetz joined07:28
qt-x joined07:28
dreiss joined07:30
Balliad joined07:30
Rodya_ joined07:31
DieguezZ joined07:31
eizua joined07:31
mrpackethead left07:32
lb1c joined07:32
jast _ikke_: thanks, fixed.07:34
mrpackethead joined07:34
_ikke_ jast: np07:35
SporkWitch joined07:35
Rodya_ left07:35
roelmonnens joined07:35
jast still haven't buckled down and added more automation to my let's encrypt thingy07:36
_ikke_ Just a cron job should work07:36
jast and I refuse to install the convoluted mess that calls itself the official client07:36
Lomex_ left07:36
_ikke_ haha07:36
ok07:36
Yeah, that's what I use07:36
hahuang65 left07:37
_ikke_ But there are other lighter clients07:37
jast my own client could technically already be used in cronjobs, but it does not yet automatically renew hostname verifications07:37
so that would be a train wreck waiting to happen07:37
delboy1978uk left07:38
Oebele joined07:39
shmuli joined07:40
lolmac left07:41
vuoto joined07:41
Lomex joined07:42
star_prone joined07:43
shmuli left07:43
bmahe left07:44
grawity jast: don't like python, use acmetool07:45
sanscheese left07:46
bschindler joined07:46
jast I've already written my own client, actually07:46
_ikke_ I bet it's in perl07:46
jast back when there was quite a bit less of a choice07:46
bschindler Hey, I have a bit of issues understanding submodules... I have a submodule but I just realized that it should track another branch that master. I did that by using git config -f .gitmodules .... (is there an easier way?)07:46
If I go into the submodule, checkout the branch, git submodule update will still change back to the master branch... what command do I have to use so that the submodule revision is really changed to that latest branch commit?07:47
star_prone left07:47
lolmac joined07:48
_ikke_ bschindler: Note that git submodules are initially made to track commits, not branches07:48
bschindler jup, I know that... detached head state is fine07:48
jast _ikke_: of course it's in perl :)07:49
lb1c jast: who would have guessed that ....07:50
;)07:50
jast lb1c: careful, you'll be running out of nicknames if you keep that up07:50
lb1c jast: private/work ^07:50
< work07:50
jast: btw i already gave up, it was basically my age, but i didn't remembered that people really do age07:53
elect joined07:53
navidr left07:54
ochorocho__ joined07:55
maroloccio joined07:58
maroloccio hi. need list of branches for script. found this on SO: git for-each-ref --shell --format='%(refname)' refs/heads. can i do this in a simpler way?07:58
ahmedelgabri joined07:59
ochorocho__ left08:00
anonymuse joined08:00
dreiss left08:00
encod3 joined08:00
ASOLAr joined08:00
erhnsd joined08:01
lb1c django docs: "Oh, and one more thing: making humans edit XML is sadistic!" i need a t-shirt with that ^08:01
sin3t left08:02
danslo_ joined08:02
mingrammer left08:02
shmoon_ joined08:02
shmoon_ ok it seems like i understood this command incorrectly - git push origin master08:03
chll joined08:03
jast maroloccio: git show-ref08:03
shmoon_ i always thought if i am on branch xyz and git push origin master will push xyz to origin/master (upstream)08:03
but seems like it doesn't, it actually pushes local master to remote master ,am i correct08:03
maroloccio jast: ?08:03
anonymuse left08:03
shmoon_ in order to push current checked out branch to maste ri have to do git push origin xyz:master08:03
jast shmoon_: yes08:03
shmoon_ dam08:03
jast and yes again08:03
maroloccio jast: outputs more than just branch names?08:04
ASOLAr left08:04
shmoon_ i've been thinking that git push origin master will push current checked out branch to origin/master for the last few yrs :|08:04
and probably messing up at times even08:04
by adding -f :08:04
:P08:04
jast maroloccio: I'm sure it's much easier to read only the second field of each line with that than what you already have08:04
shmoon_: whoops :)08:04
vmiklos left08:05
danslo left08:05
maroloccio jast: ok. true. but... why is it so hard to read a list of local branch names?08:05
shmuli joined08:05
ferr joined08:05
danslo_ left08:05
danslo joined08:06
shmoon_ thanks jast08:06
danslo maroloccio: why not just 'git branch'?08:06
anonymuse joined08:07
danslo shmoon_: I think that also depends on push.default (which also changed over some recent versions)08:07
maroloccio outputs magic. colours. and asterisks.08:07
vrishab left08:07
jast danslo: push.default only affects 'git push' without refspec arguments08:07
marcogmonteiro joined08:08
danslo ah08:08
osse maroloccio: for-eah-ref is the scriptf riendly way08:08
zeroed left08:08
aidalgol joined08:08
zeroed joined08:08
jast maroloccio: we can't really cover every single use case with a really short command. sometimes compromises have to be made.08:08
lordjancso joined08:10
rafalcpp joined08:10
p4trix joined08:10
osse and given that it's inside a script, why do you care+08:10
mizu_no_oto joined08:10
cqi|lunch left08:11
maroloccio osse: thank you. maybe there is an easier formulation of that invocation though? git for-each-ref --shell --format='%(refname)' refs/heads08:11
jast: why do you write "we"? are you a git core dev?08:11
star_prone joined08:11
p4trix left08:12
vmiklos joined08:12
JeroenT left08:14
osse maroloccio: how do you read the output?08:14
ljc joined08:14
maroloccio while read -r branch_name; do ...; done < <(dat-thang)08:15
JeroenT joined08:15
osse in that case you can remove --shell because that's wrong anyway08:15
maroloccio yes, i do not need the quotes, i figure it out after copying/pasting from SO. thank you anyway though08:15
JeroenT left08:16
Anticom joined08:16
TomyWork joined08:16
aax joined08:16
bongjovi joined08:16
lucido-cwl joined08:16
lucido-cwl Hi, I did a git pull origin branchname which resulted in a merge08:17
apotry joined08:17
osse maroloccio: eval "branches=($(git for-each-ref --shell --format='%(refname)' refs/heads))"; for b in "${branches[@]}"08:17
BOOM08:17
lucido-cwl how can I view the changes introduced by the last merge?08:17
King_Hual joined08:17
King_Hual left08:17
King_Hual joined08:17
osse lucido-cwl: git diff merge~1 merge08:17
lucido-cwl osse, fatal: ambiguous argument 'merge~1': unknown revision or path not in the working tree.08:19
I would like to see the changes introduced by the merge that was initiated by git pull origin branchname08:20
osse lucido-cwl: git diff abc1234~1 abc123408:20
merge was a placeholder08:20
Repox joined08:20
lucido-cwl lol08:20
I'm a dumbo, a placeholder for?08:21
daumie left08:21
osse the sha108:21
lucido-cwl I have this in the git log: Merge: 26aa0cb 03c885708:21
osse if you JSUT pulled then you can do git diff HEAD~ 1HEAD08:21
j416 gives osse new keyboard08:22
lucido-cwl osse, awesome, thanks08:22
shmuli left08:24
shmuli_ joined08:24
danslo left08:24
danslo joined08:25
maroloccio osse: are you sure that thing booms?08:25
star_prone left08:26
harish joined08:26
stonercoder joined08:27
Lomex left08:29
bschindler Hi - what is the proper way to make a submodule "track" a branch other than master? I know submodules are detached but if you do git submodule update --remote, it should go stay/switch/update to that branch...08:29
erhnsd left08:30
star_prone joined08:30
ahmed_elgabri joined08:31
Rodya_ joined08:31
cdown_ joined08:31
lvns joined08:32
t0by joined08:32
hahuang65 joined08:33
jast maroloccio: I contribute occasionally, it's really just a very inclusive "we", though08:33
maroloccio jast: ok :) well, thanks for your work on git if you are a contributor08:33
jast and there is no official 'core dev' status, anyway, just people who contribute a lot and people who are lazy (like me :))08:34
ahmedelgabri left08:34
jast which reminds me, I've still got a change to submit sitting in my local clone08:34
iveqy joined08:36
osse maroloccio: I am.08:37
qwvsma joined08:37
osse I use it myself08:37
https://github.com/Osse/git-scripts/blob/master/git-brv08:37
Rodya_ left08:37
maroloccio osse: so, in your view BOOM means "works" rather than "leaves door open to exploits"? ok.08:38
hahuang65 left08:38
osse maroloccio: It was just to show how --shell is meant to be used.08:38
maroloccio osse: gotcha. thanks for that08:39
osse I can't see how that's exploitable. Note that the string that is eval'ed does not contain $user_input.08:39
greendo joined08:39
lvns left08:40
maroloccio osse: even if a malicious branch name was concocted, i would not see how to exploit either to be honest08:42
berndl joined08:42
anonymuse left08:42
mieko joined08:42
osse eval is safe for grown-ups08:43
Lomex joined08:43
osse the idea behind --shell is that the command produces in effect code instead of just data.08:43
the the script above we use it to create a mapping between a branch and its upstream :)08:43
anonymus_ joined08:44
lvns joined08:44
osse But if you dont08:45
But if you don't need it then don't use it.08:45
biertie left08:45
biertie joined08:45
biertiebdesmet08:45
dodobrain joined08:46
JeroenT joined08:47
Lomex left08:48
lolmac left08:48
TheVoid left08:48
shmuli_ left08:49
mingrammer joined08:51
sin3t joined08:52
Ezzy joined08:54
mingrammer left08:55
blip- joined08:55
dodobrain left08:56
blip- hi all, I have a git repo (hosted on bitbucket server). Since I renamed things there - the https git url changed. So I did a git remote rm and git remote add to fix it08:56
but now when i want to push from my local repo - it want's to push ALL commits... rather than just the 1 it should08:56
the branch names havent changed08:57
any thoughts ?08:57
osse do a git fetch08:57
berndl blip-: check .git/config if the everything is OK.08:58
lolmac joined08:58
blip- osse, git fetch pulled in 3 branches. remotes/master, remotes/develop and remotes/test. i think that aint right08:59
berndl, the correct url shows up in .git/config09:00
PCatinean joined09:01
ronskisika joined09:01
Raging_Hog left09:02
osse blip-: did you also give the new remote a new name?09:02
Raging_Hog joined09:02
blip- osse, no, same name origin09:03
achadwick joined09:03
blip- osse, git remote rm origin then git remote add origin <newurl>09:03
osse blip-: are thebr anches remotes/master, not remotes/origin/master?09:03
blip- osse, shall i now delete those "remotes/" branches from my local repo ?09:03
osse, sorry i mistyped. yes remotes/origin/xyz09:04
osse blip-: why is that not correct?09:04
blip- osse, in the past only 2 branches show up - no remote branches (as i recall)09:05
i just had master and develop. nothing else in my local repo09:05
osse blip-: master and origin/master are different thigns09:05
blip-: run 'git branch'09:05
blip- osse, im panicking lol. yeah git branch shows just develop and master09:06
osse, branch -av shows the remotes too09:06
i guess we're good, i'll try to push09:06
osse blip-: everything sounds fine09:06
ronskisika left09:06
blip- works perfectly. awesome ! thanks osse09:07
osse !remote_tr > blip-09:07
gitinfo [!remote_tracking_branch] Remote-tracking branches (branches which start with e.g. 'origin/', listed by 'git branch -r') are read-only mirrors of the corresponding branches in another repository. They're updated by 'git fetch'. You can't edit them directly (trying to check them out results in a !detached HEAD), but you can create a new local branch based on a remote-tracking branch using e.g. 'git checkout -b <branch> <remote09:07
paulh left09:07
osse blip-: and next time, just use 'git remote set-url' :P09:07
decimad_ joined09:08
nwkj86 joined09:09
circ-user-OBsh3 left09:09
blip- osse, ill write that down. ty :)09:10
dodobrain joined09:11
decimad joined09:12
zeroed left09:15
Lomex joined09:15
netj left09:15
decimad_ left09:16
star_prone left09:17
netj joined09:17
stonercoder left09:19
sin3t left09:20
realz left09:20
kurkale6ka joined09:21
mizu_no_oto left09:21
decimad_ joined09:21
Darcidride joined09:21
mikecmpbll joined09:21
star_prone joined09:22
milky joined09:23
decimad left09:24
ljc left09:29
notebox joined09:30
star_prone left09:30
maroloccio osse: that script you linked.. edit: i=4; ((i >= 3)) && echo ok09:30
harish left09:30
mehola left09:31
star_prone joined09:31
zonality joined09:32
lolmac left09:33
decimad joined09:34
pijiu left09:34
Sceorem left09:34
ljc joined09:34
ljc left09:35
star_prone left09:36
dodobrain left09:37
Moggets left09:37
liamonade joined09:37
Mogget joined09:37
decimad_ left09:38
irqq joined09:38
afuentes joined09:38
stonercoder joined09:39
star_prone joined09:40
ljc joined09:40
chachan joined09:40
shmoon_ left09:41
^7heo joined09:42
^7heo hey, is it possible to set a submodule to track the head of the external repository?09:42
chachan hi. After some google search, I'm not sure how to proceed if I want to remove an entire and old branch from my history. Any suggestion?09:42
amcsi left09:42
ams__ joined09:42
_ikke_ chachan: Depends on what you exactly mean with branch? Do you mean a reference, or a set of commits (which might have been merged in)?09:43
lolmac joined09:43
chachan _ikke_: a set of commits09:44
_ikke_ And have they been merged into another branch?09:44
decimad_ joined09:45
chachan _ikke_: checking, 1 sec09:45
mingrammer joined09:45
_ikke_ git branch --merged <commit>09:45
jknetljknetl|lunch09:46
irco joined09:47
chachan _ikke_: yes, but I want to remove them as well09:48
decimad left09:49
chachan _ikke_: which <commit> is that?09:49
z8z joined09:49
mingrammer left09:50
zacts left09:50
stonercoder left09:51
chachan oh it's HEAD, to check, thanks09:51
I don't use merge, I use rebase, does it affect?09:51
stonercoder joined09:51
_ikke_ You have to use merge sometime09:52
even if it's a --no-ff merge09:52
But then you cannot really speak about branches anymore09:52
sostenuto left09:52
chachan hm, just removed rebased commits I guess...09:52
remove*09:53
I will rebase and get rid of those09:53
ThomasLocke joined09:53
amcsi joined09:54
rbr left09:54
mingrammer joined09:54
rbr joined09:55
qwvsma left09:55
ochorocho__ joined09:56
JanC_ joined09:57
JanC left09:58
JanC_JanC09:58
ljc left09:59
throstur joined09:59
Surfer2010_ left10:00
throstur I have a git repository for my config files, but now I want to 'freeze' a single file in time so that future changes between machines doesn't affect that one file (without removing the file), can I do that somehow or must I simply avoid committing that one file forever?10:00
ochorocho__ left10:00
ljc joined10:01
decimad joined10:01
Surfer2010 joined10:01
ljc left10:02
jast !configfile10:05
gitinfo [!configfiles] It is recommended to store local configuration data in a file which is not tracked by git, but certain deployment scenarios(such as Heroku) may require otherwise. See https://gist.github.com/1423106 for some ideas10:05
decimad_ left10:05
throstur that's not very helpful10:05
jast the only option not covered there is using the sparse checkout feature to avoid updating that file locally, but it's a bit tricky to set up10:07
let's see, do we have a factoid for that?10:07
!sparse10:08
gitinfo [!sparse_checkout] Sparse checkout can be used to restrict which files/folders are updated with all checkout and status operations. It cannot change the tree the checkout is rooted from. See man git-read-tree10:08
JeroenT left10:08
ShapeShifter499 left10:08
jast I guess that technically covers it...10:08
throstur haha, I guess it odes10:08
chachan jast: https://12factor.net/config10:08
jast chachan: I'm aware of that philosophy and I don't subscribe to it10:09
ljc joined10:09
chachan throstur: ok, what about just adding that file to .gitignore?10:10
jast that's easy to answer: !ignoretracked10:10
gitinfo [!ignore_tracked] Git only applies ignore patterns to untracked files. You can't use ignore patterns to ignore changes to files that are already tracked by git. To remove files only from git, but keeping them on disk, use git rm --cached <file>. Still, see https://gist.github.com/1423106 for ways people have worked around the problem.10:10
evanwang left10:10
stamina joined10:10
throstur nice, jast, that was a lot faster than what I was trying to write out10:10
jast the bot embodies the three virtues of a programmer, as posited by Larry Wall10:12
throstur !virtues10:12
!larry10:12
not letting me be lazy enough it seems10:12
jast we should totally add it10:12
stonercoder left10:12
ljc left10:13
throstur I agree10:13
jast (1) laziness: I don't want to type out the same response many times. (2) impatience: helping people takes so much longer if you have to write lots of things. (3) hubris: the factoids are actually maintained by all of us, and we're all experts. :}10:13
Sceorem joined10:15
ljc joined10:15
jast .trigger_edit threevirtues The three great virtues of a programmer, according to Larry Wall: laziness (write code that saves work, document so you don't have to explain over and over), impatience (make software anticipate what you need), hubris (make things nobody could want to criticize)10:16
gitinfo jast: Okay.10:16
jast that should do it10:16
dodobrain joined10:16
jast had to compress it a bit, though10:17
DevAntoine joined10:18
DevAntoine hi10:18
I'm starting a new blog. I've already got a repo for the existing one. Should I make a new repo are an empty branch on the existing one?10:18
nd left10:18
stonercoder joined10:18
paulh joined10:18
throstur DevAntoine: sounds like it's up to you...10:19
star_prone left10:20
Alienpruts left10:21
ljc left10:22
ljc joined10:25
ljc left10:25
qpdb left10:26
rorro joined10:27
throstur left10:27
lolmac left10:32
sin3t joined10:33
hahuang65 joined10:33
dec0n joined10:34
netj left10:35
jeffreylevesque joined10:36
star_prone joined10:37
netj joined10:37
hahuang65 left10:38
nd joined10:38
chibbol left10:39
sqdxxx joined10:39
lolmac joined10:43
johnmilton left10:43
sqdxxx left10:46
spudowiar joined10:47
gitinfo set mode: +v10:47
mingrammer left10:47
milky left10:47
norpan joined10:50
Alienpruts joined10:51
star_prone left10:52
rnsanchez joined10:52
chachan left10:53
aidalgol left10:53
Junior left10:55
Junior joined10:55
sdothum joined10:56
johnmilton joined10:57
GavinMagnus left10:59
GavinMagnus joined10:59
Oebele left11:00
paulh left11:00
daurnimator DevAntoine: one option you have is an orphan branch11:01
JeroenT_ joined11:01
daurnimator DevAntoine: but IMO, I'd just continue on from the existing branch *if* you are migrating posts across11:02
vuoto left11:02
DJ_Spies joined11:02
shirty joined11:03
jknetl|lunchjknetl11:03
lolmac left11:03
JeroenT_ left11:07
sin3t left11:08
rorro left11:11
ojdo left11:13
mingrammer joined11:13
simon left11:13
lvns left11:14
maroloccio left11:14
phanimahesh left11:17
lvns joined11:17
ojdo joined11:20
checkItOut left11:20
scottxu left11:20
JeroenT_ joined11:21
lolmac joined11:22
CandyAngel joined11:24
mohabaks joined11:24
DevAntoine left11:24
jeffreylevesque left11:24
Megaf left11:27
byteflame left11:28
leeN joined11:31
sonOfRa left11:31
pijiu joined11:31
GavinMagnus left11:35
harish joined11:37
Sceorem left11:39
sonOfRa joined11:39
ash_workz joined11:40
dodobrain left11:41
nwkj86 left11:42
a3Dman left11:42
nwkj86 joined11:43
jost__ joined11:43
phanimahesh joined11:44
ToBeCloud joined11:44
gitinfo set mode: +v11:44
jeffreylevesque joined11:45
dsdeiz left11:47
jost_ left11:47
Jon28_ left11:48
Jon28_ joined11:48
lvns left11:49
Sceorem joined11:51
decimad_ joined11:52
star_prone joined11:52
liamonade left11:52
nilg` joined11:53
VladGh left11:53
mohabaks left11:54
Silenced left11:55
qws-user-1228 left11:55
decimad left11:55
qws-user-1228 joined11:56
ochorocho__ joined11:56
andlabs left11:58
star_prone left11:58
PCatinean left11:58
a3Dman joined11:58
Dispatch joined11:59
fahadash joined11:59
Megaf joined11:59
star_prone joined12:00
ochorocho__ left12:01
Andrew_K left12:01
JeroenT__ joined12:02
JeroenT_ left12:02
Gurkenglas joined12:03
_ng left12:03
Puffball left12:03
arup_r joined12:05
VladGh joined12:05
arup_r left12:05
Puffball joined12:05
Ardethian\work left12:06
stonercoder left12:07
gitinfo set mode: +v12:08
CandyAngel If I have a directory structure like $REPO/dir1/dir2/dir3, does changing the contents of dir3 cause a rehash of dir1?12:08
j416 CandyAngel: if by rehash you mean that its hash changes, then yes12:09
decimad_ left12:09
_ikke_ It's a merkel tree12:09
So the has of dir2 is contained in dir1, and the hash of dir3 is contained in dir212:09
s/has/hash12:09
CandyAngel So it may be worth flattening it out (putting dir3 under $REPO) if I have a lot of directories with a lot of files at dir3's depth?12:09
_ikke_ That's how gits integrity works12:09
GavinMagnus joined12:10
^7heo Hmm CandyAngel...12:10
long time no see.12:10
cagedwisdom left12:10
sballert joined12:10
iveqy CandyAngel: what problem are you trying to solve?12:10
^7heo How you're perl-fu?12:10
wow12:10
CandyAngel ! Theo!12:10
^7heo that came out wrong12:10
afuentes left12:10
_ikke_ woa12:10
^7heo how's your perl-fu?12:10
_ikke_ #alpine #ledger and #git comming together :P12:10
^7heo _ikke_: ledger?12:10
was ist das?12:11
CandyAngel ^7heo: Well.. I'm currently coding a game engine in Perl. Does that count?12:11
_ikke_ command line accounting tool12:11
Novitsh joined12:11
^7heo CandyAngel: are you a permanent resident here?12:11
sballert left12:11
^7heo CandyAngel: So you really care about people not being able to bruteforce your game engine, don't you?12:11
_ikke_ CandyAngel: To come back to your question. I think it's beneficial to have smaller somewhat deeper trees if I recall correctly12:11
synthroid joined12:12
BlackPanx joined12:12
^7heo oh wait yeah sorry, I interrupted a question.12:12
CandyAngel iveqy: I have very large git-annex, where I have directories like this: $REPO/unsorted/file/$source/$uuid, where each $uuid may have 8000 symlinks each12:12
I was wondering if making it $REPO/file_$uuid would speed git operations up12:12
_ikke_ CandyAngel: depends on what the slow part is. Usually it's reading the working tree12:13
liamonade joined12:14
rgrinberg joined12:15
citizen-stig joined12:16
stonercoder joined12:17
CandyAngel add and commit are the slow operations. Hence looking into the tree storage12:17
kalkin- left12:17
CandyAngel To be fair, I could make a bespoke solution, but I prefer the integrity that git/git-annex provides12:18
If the parent hash just uses the child hash, it probably isn't taken any considerable time12:19
liamonade left12:19
rgrinberg left12:20
rgrinberg joined12:20
iveqy CandyAngel: afaik the parent hash is calculated with the hash of the child, so it should be fairly fast even if it's probably better with a not that deep tree12:23
however, I'm wondering if it's disc seeks that kills your performance12:23
perhaps you can explore the options that make git not to look for which files has changed and instead tell git that manually12:24
CandyAngel Oh, I already do that12:24
inflames left12:25
CandyAngel I don't *think* I do anything that causes git to traverse the working directory12:25
syg_ joined12:25
syg__ joined12:25
syg_ left12:25
syg__ left12:25
brunodlz joined12:25
CandyAngel The most frustrating thing is when it is doing 'git add'.. and there is no load (cpu and IO are idle). I can't tell what it is doing..12:26
iveqy CandyAngel: this is interesting. Perhaps you should send an email to the mail list?12:27
usually you get pretty good responses from there from people that really know this stuff12:27
CandyAngel Sure, I'll do that next time I get that situation12:28
inflames joined12:28
_ikke_ Yeah, mailing list is recommended12:28
CandyAngel Other times I get CPU idle and really low IO (like.. 600Kb/s). Which could be seek lag I guess..12:28
_ikke_ The response is pretty good there12:28
brunodlz left12:28
_ikke_ CandyAngel: yeah, lots of links don't result in a lot of throughput12:28
CandyAngel :P12:29
Also considered the idea of RAID1'ing .git with a ramdisk. What could possibly go wrong? :D12:29
_ikke_ hehe12:30
aavrug left12:30
andlabs joined12:31
rgrinberg left12:31
Puffball left12:31
Balliad left12:32
rahtgaz joined12:32
JeroenT__ left12:32
Balliad joined12:32
maroloccio joined12:32
JeroenT_ joined12:32
kyan left12:32
Emperor_Earth_ joined12:33
Jellyg00se left12:34
Emperor_Earth left12:36
paws_ joined12:36
Puffball joined12:38
afuentes joined12:39
snowbound joined12:40
Ryanar joined12:40
snowbound left12:41
quadgrande joined12:42
ayjay joined12:43
GodGinrai joined12:44
jimi_ joined12:45
rgrinberg joined12:45
cyan__ joined12:46
osse maroloccio: what do you mean?12:46
zrak joined12:46
wpumup joined12:46
fmcgeough joined12:49
altendky joined12:49
PCatinean joined12:50
crose joined12:50
Noldorin joined12:50
GT4066 left12:53
bsanford joined12:53
mingrammer left12:53
nilg` left12:54
Gitzilla_ left12:54
iveqy left12:55
zivester joined12:57
norpan left12:57
Balliad left12:58
Balliad joined13:00
jceb left13:01
mflow joined13:02
byteflame joined13:02
Ryanar left13:02
ertes joined13:03
ertes hi… magit question: in the latest MELPA version of magit the "upstream" was split into upstream and push-default, which is great, except for one feature i really liked: the 'r l' key (rebase interactively all unpushed commits)13:05
marcelofr joined13:05
ertes is there a way to bring that back?13:05
zonality left13:05
notebox left13:06
al-damiri joined13:06
star_prone left13:08
j416 ertes: git rebase -i @{u}13:08
ertes: or make an alias so that you can just e.g. g ri @{u}13:09
Repox left13:09
ertes yeah, that used to be built into magit, but it's gone =/13:10
quadgrande left13:10
j416 don't know what magit is, but that's a way to do it13:11
Noldorin left13:11
kadoban joined13:11
_ikke_ emacs git plugin13:11
thiago_ joined13:11
j416 ah13:11
ertes j416: magit is the reason i started enjoying git =)13:11
j416 pff :P13:11
Vinnie_win_z joined13:13
brandonw left13:14
Dredge left13:15
mingrammer joined13:15
mingrammer left13:15
mingrammer joined13:15
brandonw joined13:16
jceb joined13:16
Vinnie_win left13:16
crose left13:17
cdg joined13:18
cdg left13:18
cdg joined13:18
Dredge joined13:19
greendo left13:19
zonality joined13:20
Vinnie_win_zVinnie_win13:20
shinnya joined13:20
Aces_Charles left13:20
zonality left13:21
ertes this does exactly what i need, but it's twice as much to type: r - i p13:22
amcsi left13:22
sangy joined13:23
StatutoryApe joined13:23
star_prone joined13:23
inflames left13:24
inflames joined13:24
StatutoryApe Either I haven't had enough tea this morning or Google is just failing me. I can 'git tag --points-at <hash>' but what if I want all tags on all commits that were merged in the most recent merge to master?13:24
umbSublime left13:26
emmajane joined13:26
ilmari StatutoryApe: git tag --merged <commit>13:28
<commit> defaults to HEAD13:28
osse and subtract the list produced by git tag --merged <some earlier commit>13:28
BlackMaria_netsp joined13:28
BlackMaria_netsp left13:31
BlackMaria left13:31
quadgrande joined13:32
BlackMaria joined13:32
Khisanth left13:32
byteflame left13:33
notebox joined13:33
quadgrande left13:33
jknetl left13:34
deadprez joined13:34
amcsi joined13:36
ExoUNX joined13:37
quadgrande joined13:37
sin3t joined13:37
wpumup left13:38
maroloccio osse: well, this version check could use that >= https://github.com/Osse/git-scripts/blob/master/git-brv#L413:38
guampa left13:38
phanimahesh left13:39
griffindy joined13:39
stonercoder left13:40
sanketdg joined13:40
sanketdg left13:40
sanketdg joined13:41
sanketdg left13:41
Ryanar joined13:41
sanketdg joined13:42
osse maroloccio: the requirement is 4.2, not 4.13:42
sanketdg left13:42
subhojit777 left13:42
StatutoryApe ilmari, osse: thanks, that gets me a lot closer!13:42
sanketdg joined13:42
osse StatutoryApe: I like your nick13:42
sanketdg left13:43
StatutoryApe specifically 'git tag --merged $(git merge-base devel master)'13:43
sanketdg joined13:43
Lomex left13:44
zivester left13:44
Lomex joined13:45
stonercoder joined13:45
rchavik left13:45
Khisanth joined13:46
BlackPanx left13:46
kugel_ joined13:47
kugel_ left13:47
kugel_ joined13:47
maroloccio osse: ok, you are right. i was wrong.13:47
kugel left13:48
Ryanar left13:50
Lomex left13:50
Ryanar joined13:50
kugel_kugel13:50
BlackPanx joined13:51
Jellyg00se joined13:52
defrag joined13:52
johnmilton left13:52
Endarked joined13:52
Gsham joined13:53
umbSublime joined13:53
Salander27 joined13:54
Xrayez joined13:56
AaronMT joined13:56
roelmonn_ joined13:56
roelmonn_ left13:57
AaronMT left13:57
roelmonn_ joined13:57
AaronMT joined13:57
ochorocho__ joined13:57
phaleth joined13:58
jceb left13:58
Macaveli left13:58
ahmed_elgabri left13:59
jceb joined13:59
roelmonnens left14:00
roelmonn_ left14:00
Macaveli joined14:00
danslo_ joined14:00
roelmonnens joined14:01
anonymus_anonymuse14:02
ochorocho__ left14:02
Lomex joined14:02
Salander27 left14:02
chele left14:03
danslo left14:03
johnmilton joined14:05
ToBeCloud left14:05
fahadash left14:06
madewokherd joined14:09
anonymuse left14:10
ResidentBiscuit joined14:11
e14 joined14:11
Pieplay joined14:11
anonymuse joined14:11
marcelofr left14:13
akitada joined14:13
quadgrande left14:13
raijin left14:13
Salander27 joined14:16
ruby_ joined14:16
t4nkd joined14:16
dec0n left14:17
CheckDavid joined14:18
kugel_ joined14:18
afuentes left14:18
Macaveli left14:19
gitinfo set mode: +v14:19
kugel left14:20
Cassiopaya joined14:21
afuentes joined14:21
Anticom left14:22
Dougie187 joined14:22
Anticom joined14:23
IlNominePatre joined14:24
marcelofr joined14:24
chris2 left14:27
ahmed_elgabri joined14:27
liamonade joined14:27
quadgrande joined14:27
Guest77074 left14:28
Urbany left14:28
lb1c left14:29
ahmedelgabri joined14:29
ahmed_elgabri left14:29
cyphase left14:30
BrianBla- left14:31
BrianBlaze420 joined14:32
mikecmpb_ joined14:32
dhollinger left14:32
morenoh149 joined14:33
chris2 joined14:33
abyx joined14:33
WizJin left14:33
mikecmpbll left14:33
flopsec left14:33
dhollinger joined14:34
abyx left14:34
abyx joined14:34
sanketdg left14:34
sanketdg joined14:34
cyphase joined14:34
clemf joined14:35
ShekharReddy joined14:35
hahuang65 joined14:35
Repox joined14:35
VagabondAzulien joined14:37
Rodya_ joined14:37
stonercoder left14:38
star_prone left14:38
masak how come when I check out a new --orphan branch, all of my files from the old branch end up in the staging area? :)14:39
thiago_ left14:39
pijiu2 joined14:39
star_prone joined14:40
hahuang65 left14:40
masak (as opposed to, say, being untracked files)14:40
nullie your index is not changed14:41
osse probably because they where already there14:41
jaeckel left14:41
Ezzy What can the option `core.autocrlf` (and its friends from gitattributes - `eol=lf` and `eol=crlf`) possibly affect? Am I right, that if any of them is enabled - git will convert file into LF upon commiting and convert them back on checkout (detecting separators using its config files)?14:41
Is there are a way to make `git show <revision>:<path>` return same content as `git checkout <revision> -- <path>` would set to the file? It looks like `git show` ignores crlf conversion rules (And, I assume, everyone else ignores them too).14:41
What would happen if .gitattributes were changed? Will git use local version or will try to read it from the affected revision?14:41
pijiu left14:41
Rodya_ left14:42
ShekharReddy left14:42
qt-x left14:43
satbyy joined14:43
cyan__ left14:43
drbean left14:45
_ikke_ Ezzy: Yeah, it only affects when converting from the working tree to the index and reverse14:46
e14 left14:46
fahadash joined14:47
e14 joined14:50
robotroll joined14:50
e14 left14:51
e14 joined14:52
jaeckel joined14:52
nanga left14:52
drbean joined14:52
inflames left14:52
flopsec joined14:54
JeroenT_ left14:55
tjone270_ joined14:55
tjone270_ left14:55
dmto joined14:55
tjone270_ joined14:56
_ADN_ joined14:57
stonercoder joined14:57
rscata left14:57
danslo joined14:57
mflow left14:57
tjone270 left14:58
Gitzilla_ joined14:58
deadprez left14:58
zivester joined14:59
danslo_ left15:01
WizJin joined15:01
vassagus joined15:02
Salander27 left15:02
Salander27 joined15:02
synchron- left15:03
subhojit777 joined15:04
synchronous joined15:04
chigang_ joined15:04
cdg left15:04
ruby_ left15:05
star_prone left15:05
liamonade left15:05
ThomasLocke left15:05
roelmonnens left15:05
ruby_ joined15:05
Ryanar left15:06
rominronin left15:06
eivarv joined15:07
liamonade joined15:07
ahmedelgabri left15:07
ahmedelgabri joined15:08
jceb left15:08
t4nkd left15:09
perlpilot_ joined15:09
ruby_ left15:09
quadgrande left15:10
Gsham left15:11
Sceorem left15:11
Raging_Hog left15:11
jeffreylevesque_ joined15:11
jeffreylevesque_ left15:12
laumann left15:12
gfixler left15:12
markelite left15:12
deadprez joined15:12
Gurkenglas left15:13
Gsham joined15:13
Dispatch left15:13
ertes left15:13
submitnine left15:14
ruby_ joined15:14
Urbany joined15:15
mikecmpbll joined15:15
jwest left15:15
m0viefreak joined15:15
elect left15:17
star_prone joined15:17
mikecmpb_ left15:17
synthroid left15:19
PCatinean left15:19
vrishab joined15:19
crayon joined15:19
PCatinean joined15:19
d10n-work joined15:20
Anticom left15:20
mjuszczak joined15:20
ash_workz_ joined15:22
asti joined15:23
asti hello15:23
ash_workz left15:23
asti I deleted some fiels by accident and I want to revert15:23
deadprez left15:23
asti what command do I use to revert to the HEAD position (to discard the delete that I did)15:23
settermjd joined15:24
GodGinrai asti: for just the particular file? Or for everything?15:24
asti everything15:24
:)15:24
GodGinrai `git reset --hard HEAD`15:24
mjuszczak left15:25
danslo left15:25
zyeoamn joined15:25
freimatz joined15:26
danslo joined15:26
settermjd left15:26
afuentes left15:27
quadgrande joined15:27
cdown_cdown15:27
zyeoamn left15:28
star_prone left15:28
tyreld joined15:28
afuentes joined15:28
vassagus left15:28
deadprez joined15:29
robotroll left15:29
robotroll joined15:30
vassagus joined15:30
Alienpruts left15:30
vassagus left15:30
r4z joined15:31
crayon left15:31
ruby_ left15:31
vassagus joined15:31
danslo left15:31
M-shine left15:32
M-meznak left15:32
M-mistake left15:32
Remram[m] left15:32
Ineentho[m] left15:32
ruby_ joined15:32
rubie joined15:32
InfoTest joined15:34
thiago joined15:36
ruby_ left15:37
atis_ joined15:37
Rodya_ joined15:38
bschindler left15:39
dreiss joined15:40
Balliad left15:41
roelmonnens joined15:41
roelmonnens left15:41
watabou left15:42
roelmonnens joined15:42
Rodya_ left15:42
cyphase left15:43
asti GodGinrai: thanks a lot15:43
Endarked left15:44
fmcgeough left15:44
tilpner left15:44
tilpner joined15:45
fmcgeough joined15:45
ShekharReddy joined15:45
GodGinrai asti: np15:46
ChanServ set mode: +o15:46
roelmonnens left15:46
Gurkenglas joined15:47
Eugene changed the topic to: Welcome to #git, the place for git help and stomach cramps | Public logs at http://goo.gl/BuUi5o | Current stable version: 2.10.0 | First visit? Read: http://jk.gs/git | Getting "cannot send to channel"? /msg gitinfo .voice | git-clone has nothing to do with reproduction. So stop that.15:47
Eugene kicked Eugene (Eugene)15:47
Eugene joined15:47
cyphase joined15:48
TheVoid joined15:48
EvilPenguin joined15:49
Ryanar joined15:49
Orion3k left15:49
garyserj what is the difference between git reset --hard HEAD, vs git reset --hard?15:49
atis_ left15:50
_ikke_ Nothing15:50
^7heo garyserj: the difference is that in the latter case, you don't have to type HEAD.15:51
deadprez if you wanted to reset to a diff commit you could specify some other commit code instead of HEAD15:51
liamonade left15:51
e14 left15:51
davisonio left15:51
quadgrande left15:52
notebox left15:52
crayon joined15:53
crayon left15:53
crayon joined15:53
rubie left15:53
stuh84 joined15:54
VagabondAzulien left15:54
notebox joined15:54
crayon left15:55
diogenese left15:56
M-shine joined15:56
diogenese joined15:56
ahmedelgabri left15:56
thiago left15:57
rgrinberg left15:57
PabloR joined15:57
ochorocho__ joined15:58
PabloR After reinstalling Mavericks and bringing back my backed up stuff I started having issues with git. When running any git command a window popped up: `the git command requires the command line dev tools` with the options `Get Xcode` (from app store) or `Install`. I clicked on install and some git commands worked but it’s looking for the system config file in a different location.15:58
`git config --list --system` displays “fatal: unable to read config file '/Library/Developer/CommandLineTools/usr/etc/gitconfig': No such file or directory”. BUT the file was never there but at /usr/local/git/etc/gitconfig. So I copied the file to the location the computer is looking for and so far it works. Why is it looking in a different location? Was this the correct solution? OR should I change a PATH somewhere instead?15:58
quadgrande joined15:59
Eugene PabloR - /etc/gitconfig is the default location for the "system" level gitconfig file; the rest of that sounds like the prefix added by your (OS X?) install16:00
The lack of this file shouldn't(?) cause any errors during normal usage; what are you doing thats giving a problem?16:01
satbyy left16:01
Eugene And can you provide a !transcript16:01
gitinfo Please paste (using https://gist.github.com/ or https://vomitb.in/ ) a transcript ( https://gist.github.com/2415442 ) of your terminal session so we can see exactly what you see16:01
PabloR Eugene It may be but I don't know why it added the prefix16:01
Eugene Me neither; I'm not a Mac owner and just guessing ;-)16:01
PabloR I had some aliases I created that weren't working16:02
actinide joined16:02
Eugene bash or git aliases?16:02
PabloR Now it works, but I'm not sure what I did it's ok. Git aliases16:02
ochorocho__ left16:02
Orion3k joined16:02
stuh84 left16:03
eduardas_m left16:03
Eugene Did you close and restart your terminal session?16:03
(after installing git)16:03
atis_ joined16:04
synthroid joined16:04
PabloR I believe I did. I'll do again since I just downloaded a new version to see if it fixed. Just a sec16:04
synthroid left16:05
synthroid joined16:05
Darcidride left16:05
Eugene Likely related. I reckon that Xcode(or something) is setting up the env vars that git needs to look for everything in the right place, since it isn't in /etc16:05
PabloR See, another issue is that git —version displays git version 1.9.5 (Apple Git-50.3) but I downloaded several git versions later including 2.6, 2.8 & 2.10.0 so I don’t know which version I’m actually using and how to get the latest to work16:05
Darren_ joined16:05
Eugene Generally you only have one installed16:05
thiago joined16:06
cyphase left16:06
Eugene `which git` should tell you the path to the git binary, which might help a bit16:06
PabloR I just downloaded form https://git-scm.com/downloads16:06
rominronin joined16:06
PabloR which git displays /usr/bin/git16:07
guampa joined16:07
tvw joined16:07
Eugene I will need to defer to a Mac expert, should there be one around16:07
cdg joined16:07
quadgrande left16:07
PabloR Ok. Thanks!16:07
wcpan left16:07
markelite joined16:08
TomyWork left16:08
PabloR Anybody Mac user that can help me?16:08
qpdb joined16:09
Guest95226 left16:09
notebox left16:09
boushi left16:10
boushi joined16:10
LeBlaaanc joined16:10
cyphase joined16:10
Pyrogerg joined16:11
e14 joined16:11
notebox joined16:11
rominronin left16:11
berndl PabloR: I'm a Mac user. What's up?16:12
lvns joined16:12
perlpilot left16:12
irqq left16:12
e14 left16:12
PabloR Hi berndl. Having a couple of different issues with git16:12
Orion3k left16:12
eizua left16:12
PabloR git —version displays git version 1.9.5 (Apple Git-50.3) but I downloaded several git versions later including 2.6, 2.8 & 2.10.0 so I don’t know which version I’m actually using and how to get the latest to work16:12
e14 joined16:12
PabloR I don't recall how I downloaded git for the first time16:13
But I just downloaded form https://git-scm.com/downloads16:13
_ikke_ (not a mac user) have you tried homebrew?16:14
atis_ left16:14
satya4ever left16:14
stonercoder left16:15
laumann joined16:15
PabloR _ikke_ No, I don't think I did. I know there's discussion about what's the best methods. At some point somebody told me not to use it16:15
gitinfo set mode: +v16:16
perlpilot_perlpilot16:16
_ikke_ ok16:16
perlpilot PabloR: if you have an older version of git, you can also clone the git repo from github and follow the instructions in there on how to build it and install it yourself (if you have a taste for adventure ;-)16:16
terminal_echo joined16:17
PabloR +perlpilot I don't have a taste for adventure. I don't know much about systems. And every time I touch something fixing it takes me lots of time16:17
So, question is why would I keep seeing old versions when I download new ones16:18
fhackdroid|afkfhackdroid16:19
_ikke_ PabloR: Probably because they install it in a different location and the system version has precedence16:19
archaic joined16:19
crayon joined16:19
crayon left16:20
crayon joined16:20
duderonomy left16:20
Emperor_Earth_ left16:20
archaicGuest3831116:20
wwftvt joined16:20
PabloR _ikke_ Do you know how can I change the system to look for the new version instead?16:20
_ikke_ PabloR: I recall something about the one apple provides is 'protected'16:20
zonality joined16:21
_ikke_ What version of OSX do you have?16:22
berndl PabloR: just install from homebrew.16:22
PabloR mavericks16:22
notebox left16:22
notebox joined16:22
zonality left16:23
cyphase left16:23
PabloR berndl I'm concern because some people have said they had some issues when using homebrew.16:24
and I'm not very knowledgeable at systems16:24
But anyway, currently git is working. My main issue is the one I wrote before that. I'll copy it below16:25
e14 left16:25
PabloR <PabloR> After reinstalling Mavericks and bringing back my backed up stuff I started having issues with git. When running any git command a window popped up: `the git command requires the command line dev tools` with the options `Get Xcode` (from app store) or `Install`. I clicked on install and some git commands worked but it’s looking for the system config file in a different location.16:26
`git config --list --system` displays “fatal: unable to read config file '/Library/Developer/CommandLineTools/usr/etc/gitconfig': No such file or directory”. BUT the file was never there but at /usr/local/git/etc/gitconfig. So I copied the file to the location the computer is looking for and so far it works. Why is it looking in a different location? Was this the correct solution? OR should I change a PATH somewhere instead?16:26
Orion3k joined16:26
cyphase joined16:27
danslo joined16:28
sdothum left16:30
e14 joined16:30
dreiss left16:30
Silenced_v2 joined16:30
Silenced_v2 left16:30
Silenced_v2 joined16:30
rgrinberg joined16:31
nitric joined16:31
sdothum joined16:32
kyan joined16:32
maroloccio left16:32
danslo left16:33
ndimitrijndim16:34
wwftvt left16:34
ansimation joined16:34
mycelium joined16:34
dreiss joined16:35
Dispatch joined16:35
ksefchik joined16:36
kurkale6ka left16:36
mikecmpbll left16:37
clr joined16:37
Rodya_ joined16:38
anth0ny_ left16:39
marcelofr left16:39
durham joined16:39
mingrammer left16:40
aax left16:40
ansimation left16:41
ruby_ joined16:42
DieguezZ left16:43
Rodya_ left16:43
SteffanW joined16:43
ochorocho__ joined16:44
dmarr left16:44
erguven left16:44
ferr left16:45
chll left16:45
ruby_ left16:46
dmarr joined16:46
nidr0x joined16:46
ruby_ joined16:47
ruby_ left16:47
terminal_echo left16:48
anth0ny joined16:48
McKrakenMcKraken_zzzzz16:49
circ-user-OBsh3 joined16:50
dreiss left16:52
sangy left16:52
Lomex left16:54
eivarv left16:54
amcsi left16:55
encod3 left16:55
_ikke_ PabloR: Has to do with how that specific git version was built16:55
sangy joined16:56
_ikke_ This one was built to not mess with system files16:56
cyphase left16:56
_ikke_ (everything is under /Library/Developer/CommandLineTools/)16:56
deadprez left16:57
chrisshattuck joined16:57
wcpan joined16:57
Rodya_ joined16:57
eivarv joined16:58
berndl left16:59
hahuang65 joined16:59
notebox left16:59
cdg left16:59
PabloR _ikke_ so copying my config file to the new location is ok then?17:00
notebox joined17:00
cyphase joined17:01
PabloR Instad of changing a path somewhere?17:01
Rodya_ left17:01
matsaman joined17:01
matsaman does git add -A work the same regardless of location within git-tracked hierarchy?17:02
timvishe` joined17:02
thiago left17:03
deadprez joined17:03
PaulCapestany joined17:03
Lomex joined17:03
mikecmpbll joined17:03
AnarchyAo joined17:05
Rodya_ joined17:05
timvisher left17:06
ahf left17:06
clemf left17:06
PaulCape_ left17:07
QwertyDragon joined17:07
rominronin joined17:08
Lomex left17:08
clemf joined17:08
dviola joined17:08
sametsisartenep joined17:09
bruce_lee left17:09
sametsisartenep Hi there17:09
gitinfo sametsisartenep: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.17:09
_ikke_ PabloR: Changing that path would require recompiling git, so yeah, moving it is the only option17:09
PabloR: Note that, if it's only for your user, ~/.gitconfig is a much better place to put these things17:09
ahmedelgabri joined17:09
sametsisartenep How could I disable gpg signing for a single repo?17:10
ProbabilityMoon joined17:10
jimi_ left17:10
_ikke_ matsaman: " If no <pathspec> is given when -A option is used, all files in the entire working tree are updated (old versions of Git used to limit the update to the current directory and its subdirectories)."17:10
ahf joined17:11
_ikke_ sametsisartenep: git config commit.gpgSign false17:11
this will disable it for the current repo only17:11
laumann left17:11
_ikke_ matsaman: So, only from the current dir and deeper17:11
thiago joined17:12
mingrammer joined17:12
sametsisartenep Thanks _ikke_17:12
ProbabilityMoon left17:12
chrisshattuck left17:12
_ikke_ matsaman: Just tested it, and it does seem to add *all* files17:13
rominronin left17:13
CheckDavid left17:13
chrisshattuck joined17:14
PabloR _ikke_ I have my global config file at /Users/pablo/.gitconfig and the system config file was at /usr/local/git/etc/gitconfig but now is at /Library/Developer/CommandLineTools/usr/etc/gitconfig. But I haven't chosen the paths. They were added by default17:14
lordjancso left17:15
sametsisartenep jump17:16
mingrammer left17:16
sametsisartenep ^ Woops, sorry about that17:16
_ikke_ PabloR: Like I said, that's choosen at compile time17:16
ProbabilityMoon joined17:16
_ikke_ The system config location17:17
cyphase left17:17
liamonade joined17:17
PabloR _ikke_ ok. Thanks17:17
hahuang65 left17:17
|ifei5g00d left17:18
chrisshattuck left17:20
quackgyver left17:20
akitada left17:20
Darcidride_ joined17:21
cdg joined17:21
cyphase joined17:21
Groscheri joined17:22
|ifei5g00d joined17:22
Groscheri left17:22
Groscheri joined17:22
raijin joined17:24
anonymuse left17:24
quetz left17:24
robotroll left17:25
Repox left17:25
liamonade left17:26
ash_workz_ash_workz17:26
hahuang65 joined17:26
e14 left17:29
_sjs joined17:29
ProbabilityMoon left17:30
ProbabilityMoon joined17:30
dreiss joined17:30
aspiers left17:31
boushi left17:31
ProbabilityMoon left17:32
Sasazuka joined17:32
pouet joined17:32
cyphase left17:32
danimal2 joined17:33
ahmedelgabri left17:33
danimal2 left17:33
danimal2 joined17:33
matsaman _ikke_: from any location in hierarchy, you mean?17:33
zacts joined17:34
Ryanar left17:34
_ikke_ In recent versions of git, git add -A will include any file in the working tree, no matter where you are17:34
matsaman okay, groovy, thanks17:34
and I can test that with just git add -A and then... git diff --staged ?17:34
Ryanar joined17:34
cdown left17:34
_ikke_ git status17:34
ShekharReddy left17:35
liamonade joined17:35
matsaman okay thanks again =)17:36
_ikke_: you wouldn't know the version that was added/changed, offhand?17:36
re: "In recent versions..."17:36
cyphase joined17:36
aax joined17:38
_ikke_ matsaman: v2.0.017:38
matsaman thanks thrice =)17:39
_ADN_ left17:42
irqq joined17:44
nidr0x left17:45
jceb joined17:46
liamonade left17:49
Gitzilla_ left17:49
cyphase left17:50
Ryanar left17:50
multi_io left17:54
ahmedelgabri joined17:55
multi_io joined17:56
cyphase joined17:56
jwest joined17:56
spudowiar left17:57
Ryanar joined17:57
runlevl4 left17:58
Lomex joined18:00
e14 joined18:01
ansimation joined18:01
BrianJ left18:01
govg joined18:02
kulelu88 joined18:02
rjack2 joined18:02
sssilver joined18:03
PabloR left18:04
qpdb left18:04
zarel joined18:05
terminal_echo joined18:06
chrisshattuck joined18:06
notebox left18:06
mingrammer joined18:06
ShekharReddy joined18:06
rominronin joined18:07
jwest left18:08
shinnya left18:09
marcogmonteiro left18:09
cyphase left18:10
Balliad joined18:10
runlevl4 joined18:11
mingrammer left18:11
rominronin left18:12
Salander27 left18:12
Salander27 joined18:13
Xizor joined18:14
terminal_echo left18:14
sssilver_ joined18:14
cyphase joined18:15
sssilver left18:15
achadwick left18:15
stonercoder joined18:17
Darren_ left18:17
subhojit777 left18:19
jwest joined18:20
ansimation left18:20
chigang_ left18:21
Flaghacker joined18:22
bocaneri left18:22
atomi_atomi18:23
raijin left18:24
stonercoder left18:25
cyphase left18:27
cdown joined18:28
JanC_ joined18:28
sametsisartenep left18:28
JanCGuest1800718:29
JanC_JanC18:29
sametsisartenep joined18:29
Remram[m] joined18:29
ahmedelgabri left18:29
Ineentho[m] joined18:29
M-mistake joined18:29
M-meznak joined18:29
SpeakerToMeat left18:30
Guest18007 left18:30
sametsisartenepGuest321418:30
cyphase joined18:32
e14 left18:32
jimi_ joined18:32
rgrinberg left18:33
cdg left18:33
gumnos joined18:36
chrisshattuck left18:36
e14 joined18:36
star_pro_ joined18:36
Koopz joined18:36
chrisshattuck joined18:37
gumnos Is there a way to do a git-reset on a branch other than HEAD? Based on my reading, it looks like git-reset always acts on HEAD and I'd like to move/repoint a branch label to an different commit. I can stash+checkout+reset+checkout+unstash but wondered if there was something obvious I was missing18:37
_ikke_ If you have not checked out this branch, you can use git branch -f <name> <commit> to repoint a branch18:38
zacts left18:38
gumnos _ikke_: sounds exactly like what I want to do. Thanks!18:39
_ikke_ If you want to check out this branch at the same time, you can also use git checkout -B <name> <commit>18:39
star_pro_ left18:40
jceb left18:41
Koopz left18:41
gumnos it was a "arg, I've been working on master and should have been working on $BRANCH, so I made $BRANCH and continued work there, but master (unpushed) now points into a WIP, so I want to move it back to where upstream points". The "branch -f" did just what I needed. Thanks again!18:42
mykespb joined18:43
_ikke_ right18:43
cyphase left18:43
Flaghacker left18:43
ahmedelgabri joined18:44
bgerber joined18:44
chrisshattuck left18:46
jost__ left18:46
chrisshattuck joined18:46
liamonade joined18:46
yohnnyjoe joined18:47
Balliad left18:47
liamonade left18:47
cyphase joined18:47
mrpackethead left18:48
Darren_ joined18:48
gumnos left18:49
Silenced_v2 left18:51
InfoTest left18:51
AaronMT_ joined18:51
Ezzy left18:52
AaronMT left18:53
AaronMT__ joined18:53
SpeakerToMeat joined18:53
liamonade joined18:54
pungi-man joined18:55
e14 left18:56
AaronMT_ left18:56
ansimation joined18:57
e14 joined18:57
Salander27 left18:58
PCatinean left18:58
ansimation left18:59
phaleth left18:59
satbyy joined18:59
satbyy left19:00
satbyy joined19:00
qpdb joined19:00
texasmynsted left19:01
crayon left19:01
Rodya_ left19:01
texasmynsted joined19:02
LeBlaaan_ joined19:02
LeBlaaanc left19:02
rideh left19:02
rideh joined19:02
rideh I want to use cron job with a bare repo to poll for changes (git pull branch) and publish them to a remote work tree on that same host. seems my post-merge hook wont work as there is no head in bare. Any suggestions?19:03
cyphase left19:03
Guest86 joined19:04
Spec-Chum joined19:05
fahadash left19:06
Ryanar left19:06
LeBlaaan_ left19:06
cyphase joined19:07
rominronin joined19:08
t0by left19:08
Rodya_ joined19:08
Pulp joined19:11
_ikke_ there is a HEAD in a bare repo19:12
Rodya_ left19:12
rominronin left19:12
aidalgol joined19:13
moritz uhm, but can you merge in a bare repo?19:13
_ikke_ But merging in hooks and cron-jobs is not advisable19:13
No, you cannot19:13
You need a working tree for that19:13
moritz then a post-merge hook is pointless19:13
cdown_ joined19:13
Ryanar joined19:13
mohabaks joined19:14
moritz in a bare repo, fetch should be enough, afaiu19:14
_ikke_ Usually you push to a bare repository19:14
Balliad joined19:15
cyphase left19:16
cdown left19:16
cdown_cdown19:16
loopy joined19:17
moritz rideh: so you likely want a post-receive hook. Also !deploy19:17
gitinfo rideh: Git is not a deployment tool, but you can build one around it (in simple environments) or use it as an object store(for complex ones). Here are some options/ideas to get you started: http://gitolite.com/deploy.html19:17
NeonSynth joined19:17
e14 left19:17
moritz or post-update19:17
cyan__ joined19:18
moritz (post-receive if you want to be able to reject pushes, post-update if you don't)19:18
e14 joined19:18
_ikke_ pre-receive if you want to reject them19:18
post-receive is too late19:18
Salander27 joined19:19
asti left19:19
e14 left19:19
_ikke_ and the other one is just update19:19
e14 joined19:19
_ikke_ sorry, post-update also exists19:19
biotim joined19:20
cyphase joined19:20
rgrinberg joined19:20
Silenced joined19:21
deadprez left19:23
deadprez joined19:25
cagedwisdom joined19:25
byteflame joined19:26
aidalgol left19:27
spudowiar joined19:28
gitinfo set mode: +v19:28
r4zafk_r4z19:29
cyphase left19:29
Ryanar left19:30
danslo_ joined19:30
netcarver joined19:30
mykespb left19:31
nights_ joined19:32
Gitzilla_ joined19:32
nights left19:32
johnmilton left19:32
cyphase joined19:34
byteflam1 joined19:34
rgrinberg left19:35
danslo_ left19:35
byteflam1 left19:35
byteflame left19:35
Silenced left19:35
Silenced joined19:35
byteflame joined19:35
texasmynsted left19:35
rgrinberg joined19:36
sssilver_ left19:36
Jon28_ left19:37
sssilver joined19:37
texasmynsted joined19:37
_sjs left19:37
rgrinberg left19:38
netj left19:38
netj joined19:38
Gurkenglas left19:39
e14 left19:39
mingrammer joined19:40
vuoto joined19:42
spudowiar left19:42
cyphase left19:43
e14 joined19:45
mingrammer left19:45
antranigv joined19:46
antranigv so, I should add *.swp in .git/info/exclude to ignore all vim swp files, aye?19:47
if it's a file, it should be the file path?, from the git root dir?19:48
grawity it would be more useful to add it to your global ~/.gitignore, but yes19:48
antranigv ah, didn't know about the global one, thanks grawity ! :))19:48
cyphase joined19:48
grawity well I suppose it's ~/.config/git/ignore these days19:48
johnmilton joined19:49
LeBlaaanc joined19:49
_ikke_ Yeah, unless you set it manually19:50
grawity apparently there *wasn't* a global default before19:50
dsantiago left19:50
_ikke_ Nope, you had to set it19:51
fmcgeough left19:51
chrisshattuck left19:51
SteffanW left19:51
yohnnyjoe left19:51
parallel21 left19:51
chrisshattuck joined19:54
crose joined19:54
rgrinberg joined19:54
cdg joined19:55
texasmynsted left19:55
raijin joined19:56
boombatower joined19:56
jeffreylevesque left19:57
stonercoder joined19:57
circ-user-OBsh3 left19:57
texasmynsted joined19:57
l4v2 joined19:57
AnarchyAo left19:58
byteflame left19:59
Rodya_ joined19:59
Darren_ left20:00
Xizor left20:00
AnarchyAo joined20:03
Balliad left20:03
Rodya_ left20:04
Xizor joined20:04
FroMaster joined20:05
cyphase left20:06
cdown left20:07
sanketdg left20:07
raijin left20:07
shinnya joined20:07
rominronin joined20:09
cyphase joined20:12
rominronin left20:14
duderonomy joined20:14
shpew12 joined20:15
Emperor_Earth joined20:15
bongjovi left20:16
bongjovi joined20:16
shpew12 I'm trying to set up git on an apache server, but whenever I try to pull from my local computer, it always times out with no messages of any errors. Does anyone know why this might be happening? This is the first time trying to set up this remote from the server.20:17
antranigv hmm, say I want to ignore mylove.txt, but I did git add it before, I also can see it now in git ls-files; how to remove it? :)20:17
_ikke_ antranigv: git rm --cached mylove.txt20:18
abyx left20:18
_ikke_ shpew12: GIT_TRACE=1 git pull20:18
antranigv _ikke_: thankie! :)20:19
dmto left20:19
_ikke_ grazie20:20
cdown joined20:20
treehug88 joined20:22
cyphase left20:22
crose left20:23
l4v2 left20:25
raijin joined20:25
vdl left20:25
star_prone joined20:25
eivarv left20:26
bluezone joined20:26
Darcidride_ left20:26
e14 left20:26
cyphase joined20:27
_leb joined20:27
Darren_ joined20:28
star_prone left20:30
skylite_ joined20:30
raijin left20:30
grumble left20:30
z8z left20:31
grumble joined20:31
eivarv joined20:31
mloy joined20:31
raijin joined20:32
e14 joined20:32
skylite left20:33
mloy Hi, I forked a repo on github and now the repo I forked is a commit ahead on a development branch and I need to pull that commit. How can I update my forked repo?20:34
shpew12 Thank you _ikki_. I'm so now I'm getting an 'unable to access' message, is there some type of configuration I need to address before fetching from my computer?20:34
Xrayez left20:34
mloy Oh wait, I should set it to upstream20:34
bongjovi left20:35
Darren_ left20:35
eivarv left20:36
Rodya_ joined20:41
cyphase left20:42
raijin left20:43
yohnnyjoe joined20:43
synthroid left20:44
bgerber left20:45
cyphase joined20:46
FuzzySockets joined20:48
GavinMagnus left20:50
raijin joined20:51
denimsoft joined20:53
vuoto left20:55
greendo joined20:56
crelix left20:56
raijin left20:56
anonymuse joined20:57
QwertyDragon left20:57
yoh is there a gid command to discover the date of a last commit which modified for each file in a repository (efficiently, e.g. if I have a thousand files) or in current directory20:58
z8z joined20:58
e14 left20:58
cyphase left20:59
jimi_ left20:59
e14 joined20:59
chrisshattuck left21:01
shpew12 left21:01
shpew12 joined21:01
aidalgol joined21:01
kadoban yoh: git log -- the_file would be a good start21:02
i7c git log --pretty=%cd -1 -- path/to/file21:02
mohabaks left21:02
i7c Or --pretty=%ct if you want unix time stamps21:02
yoh that would be for 1 file... what if I have a thousand?21:03
dsdeiz joined21:03
yoh looping would be too long21:03
kadoban Are you looking for a thousand different answers, or which commit changed any of them, or?21:03
yoh the last commit which changed each file21:03
cyphase joined21:04
yoh pretty much -- I want to provide a view similar to github where it notes when each file (or directory by aggregation) was last changed21:04
ash_workz left21:04
yoh like 'mtime', but since git doesn't record those -- would be date/time of the last commit which modified it21:04
indeed I could do it with git log per each file, or somehow traversing entire git log FILES until I find a record for each file, but both are inefficient21:04
i7c Well21:05
ExoUNX left21:05
kadoban I don't think git can answer that efficiently on its own, you'd likely have to build up some db on top.21:05
i7c either you loop over files or you loop over commits in date order and collect the information that way.21:05
And what kadoban says.21:05
peepsalot i have a branch i've been working in, and right now i want to rebase mybranch onto master, does it matter if I already pushed a lot of changes on my branch to origin/mybranch before this rebase?21:06
kadoban peepsalot: It depends, is anyone else using that branch, or have a copy of it, or care about it?21:06
yoh i7c, kadoban: ok -- just thought to check if I am not missing some obvious to experts procelain command ;)21:06
kadoban Yep, AFAIK you're not.21:07
i7c !rewrite21:07
gitinfo Rewriting public history is not recommended. Everyone who has pulled the old history will have to do work (and you'll have to tell them to), so it's infinitely better to just move on. If you must, you can use `git push --force-with-lease <remote> <branch>` to force (and the remote may reject that, anyway). See http://goo.gl/waqum21:07
z8z left21:07
peepsalot kadoban, not really, it just needs to be merged back into master after this21:07
well, and a code review before that21:08
so just needs to be used for a code review21:08
kadoban peepsalot: If it's only you it's likely okay, you'll have to do a push -f and if you have that branch on any other computers they'll have to be updated manually or whatever (don't do a pull)21:08
terminal_echo joined21:08
andlabs left21:09
loopy left21:09
StuartMI left21:09
hahuang65 left21:10
rominronin joined21:10
clemf left21:10
e14 left21:12
BSaboia left21:14
duderonomy left21:14
deadprez left21:15
Balliad joined21:15
vdl joined21:15
rominronin left21:15
rgrinberg left21:17
Silenced left21:18
irco left21:19
rgrinberg joined21:19
l4v2 joined21:19
Balliad left21:19
e14 joined21:20
Salander27 left21:21
d0nn1e left21:22
rnsanchez left21:22
d0nn1e joined21:23
lightstalker left21:23
SteffanW joined21:24
deadprez joined21:25
deadprez left21:25
elastix joined21:26
elastix hi guys what does it mean that git is decentrlalized/?21:27
DomeMasterYolo joined21:27
gitinfo set mode: +v21:27
sangy left21:27
DomeMasterYolo hello21:27
gitinfo DomeMasterYolo: hi! I'd like to automatically welcome you to #git, a place full of helpful gits. Got a question? Just ask it — chances are someone will answer fairly soon. The topic has links with more information about git and this channel. NB. it can't hurt to do a backup (type !backup for help) before trying things out, especially if they involve dangerous keywords such as --hard, clean, --force/-f, rm and so on.21:27
Hink left21:28
_leb left21:28
e14 left21:28
DomeMasterYolo is there anyway I can run git archive but specify the directory of the repo21:28
nikivi joined21:28
DomeMasterYolo so I don't need to cd21:28
first21:28
ty21:28
yohnnyjoe left21:28
Hink joined21:29
e14 joined21:29
e14 left21:30
Xizor left21:30
rgrinberg left21:30
rgrinberg joined21:31
spudowiar joined21:31
gitinfo set mode: +v21:31
maroloccio joined21:31
cyphase left21:31
Hink left21:32
DieguezZ joined21:32
e14 joined21:32
denimsoft left21:32
nwkj86 left21:32
gitinfo set mode: +v21:32
Rodya_ left21:32
joshc DomeMasterYolo: you can use git --git-dir=$path <command>21:32
Hink joined21:33
DomeMasterYolo thanks joshc21:33
rahtgaz left21:33
DomeMasterYolo its weird joshc why is that not in the man page?21:33
_ikke_ man git21:33
gitinfo the git manpage is available at http://jk.gs/git.html21:33
_ikke_ It's in there21:34
DomeMasterYolo hrm ok not in git archive man21:34
but I'll read whole one :)21:34
paws_ left21:35
mkopriva joined21:35
_ikke_ DomeMasterYolo: Because it's a parameter that works for all commands21:35
dodobrain joined21:35
tvw left21:35
_ikke_ git <general_params> <subcmd> <subcmd_params>21:35
cyphase joined21:36
e14 left21:36
Puffball left21:37
DomeMasterYolo ok thanks21:37
LeBlaaanc left21:37
DomeMasterYolo I'm doing: git --git-dir='./apps/device-manager/' archive master21:37
and its saying not a git repository21:37
it definitely is21:37
denimsoft joined21:38
_ikke_ DomeMasterYolo: use -C, that will do both --git-dir and --work-tree21:38
nikivi left21:39
chrisshattuck joined21:39
DomeMasterYolo tried already _ikke_21:39
git -C "$(pwd)/apps/device-manager/" archive master21:39
SteffanW left21:39
DomeMasterYolo says unknown option "-C"21:39
_ikke_ Then your version of git is too old21:40
DomeMasterYolo hrm21:40
I@ll just do it manually21:40
its quicker21:40
thanks for the help21:40
Guest86 left21:40
_ikke_ introduced in 1.8.521:41
ansimation joined21:41
_ikke_ We're at 2.10.0 now21:41
ringer1 left21:44
freimatz left21:44
Pieplay left21:44
Ringer joined21:45
fees left21:45
Brando753-o_O_o left21:45
hecliunyx left21:46
ahr3n joined21:47
cyphase left21:48
hecliunyx joined21:48
clemf joined21:48
Brando753-o_O_o joined21:48
denimsoft left21:48
clemf left21:50
Rodya_ joined21:50
dsantiago joined21:50
Dispatch_ joined21:50
dsantiago left21:52
Gsham left21:52
cyphase joined21:52
elastix left21:52
jrozner joined21:52
dsantiago joined21:52
aax left21:53
inflames joined21:54
jrozner I've been working in a long living branch working on an new feature. I last rebased on master about a month ago and have finally gotten everything wrapped up. I squashed and went to rebase but in some of the files that are both modified I'm seeing only only the master version and not options to resolve. Is there a reason certain hunks wouldn't be presented as changed?21:54
Puffball joined21:55
dsantiago left21:55
dsantiago joined21:56
rgrinberg left21:56
_sjs joined21:56
Groscheri left21:56
duderonomy joined21:58
DomeMasterYolo left21:59
zarel left21:59
e14 joined21:59
e14 left21:59
Dispatch_ left22:00
iokill joined22:00
DomeMasterYolo joined22:01
_sjs left22:01
atomi left22:01
liamonade left22:02
_sjs joined22:02
copumpkin joined22:03
afk_r4zr4z22:03
copumpkin is there a straightforward way to take an arbitrary directory (even outside of a git repo) and asking git to compute the tree hash that directory would have (recursively doing all the usual work) if it were stored in a git repo?22:04
I can do the various parts myself, but then I need to recursively traverse the folders, pay attention to .gitignores, and other intricacies that it seems like git is probably better at than I am22:04
Dispatch left22:04
ahf left22:05
Dougie187 left22:05
osse copumpkin: I think the easiest way would be to yolo it by abusing --git-dir and --work-tree22:05
copumpkin osse: hmm, how would that work?22:05
_leb joined22:05
andlabs joined22:05
osse copumpkin: export GIT_DIR=$(mktempd -d); export GIT_WORK_TREE=thatdiryouwant; git init; git add .; git commit -mlolrofl; git rev-parse HEAD^{tree}22:06
something like that22:06
woops. mktempd -d22:06
_sjs left22:07
osse woops again. mktemp -d22:07
moei left22:07
endiruna joined22:07
osse (copumpkin: setting GIT_WORK_TREE and GIT_DIR is the same as using --git-dir and --work-tree)22:07
amdi_ joined22:08
copumpkin oh, cute :)22:08
that doesn't seem too painful, I'll give it a go, thanks!22:08
ansimation left22:08
atomi joined22:08
stamina left22:08
HoierM joined22:09
osse copumpkin: I've found several times that if I want to do something "as if it were a git repo" it's easier to actually create a repo :P22:09
you can quote me on that22:10
zivester left22:11
copumpkin hah fair!22:11
rominronin joined22:11
Mission-Critical joined22:11
d10n-work left22:12
Puffball left22:12
_leb left22:12
unreal left22:13
jefcolbi joined22:13
griffindy left22:13
ahr3n left22:13
Gsham joined22:13
ojdo left22:14
paulh_ joined22:15
jimi_ joined22:15
jimi_ left22:15
jimi_ joined22:15
anonymuse left22:15
paulh_ left22:15
rominronin left22:16
DieguezZ left22:16
deadprez joined22:17
Noldorin joined22:17
SebastianFlyte left22:18
MattMaker joined22:18
Ryanar joined22:18
atomi left22:19
MattMaker left22:19
SebastianFlyte joined22:19
MattMaker joined22:20
Ryanar left22:20
Ryanar joined22:21
Puffball joined22:23
DomeMasterYolo left22:23
ojdo joined22:23
tlaxkit joined22:24
Puffball left22:25
DomeMasterYolo joined22:25
_sjs joined22:26
Ryanar left22:26
McKraken_zzzzzMcKraken22:26
Mobutils joined22:26
sangy joined22:27
EvilPeng1 joined22:29
liamonade joined22:30
_sjs left22:30
ahf joined22:30
AaronMT__ left22:30
maroloccio left22:30
atomi joined22:31
EvilPenguin left22:31
stonercoder left22:35
Puffball joined22:37
osse copumpkin: Sooo did it do the trick?22:37
zacts joined22:37
flavius left22:38
cyphase left22:38
ksefchik left22:39
DieguezZ joined22:40
rgrinberg joined22:42
lightstalker joined22:42
cyphase joined22:44
Raed|Mobile joined22:44
Gurkenglas joined22:49
byteflame joined22:50
copumpkin osse: sorry got pulled into something more pressing but will try it soon22:50
copumpkin hah not sure where the /me came from22:50
DieguezZ left22:51
thiago left22:51
dsdeiz left22:52
cyphase left22:52
NeonSynth_ joined22:52
matsaman left22:54
jefcolbi left22:55
shmuli joined22:55
NeonSynth left22:55
endiruna left22:56
cyphase joined22:57
spudowiar left22:57
realz joined22:58
bluezone left22:58
ayjay has anyone got git-http-backend authenticating from mysql?22:59
disi left22:59
cdown left22:59
al-damiri left23:01
IlNominePatre left23:02
Cassiopaya left23:02
ams__ left23:04
al-damiri joined23:04
chrisshattuck left23:05
ksefchik joined23:06
ksefchik left23:07
King_Hual left23:07
disi joined23:09
thiago joined23:09
Gsham left23:09
zivester joined23:10
duderonomy left23:11
rominronin joined23:12
greendo left23:13
ksefchik joined23:13
ochorocho__ left23:13
_sjs joined23:14
ksefchik left23:15
Pulp left23:15
rominronin left23:17
Pulp joined23:17
mrpackethead joined23:18
_sjs left23:18
ayjay i'm finding it funny that i just git cloned git and then uninstalled git through apt-get so that i could make install git23:19
vassagus left23:20
ayjay https://imgflip.com/i/1a5iqu23:20
govg left23:22
disi left23:22
disi joined23:22
govg joined23:24
disi left23:24
disi joined23:24
Emperor_Earth left23:25
zacts left23:26
dsdeiz joined23:26
mkopriva left23:26
pouet left23:27
same_ol_geez joined23:27
Atlantic777 joined23:28
Atlantic777 left23:28
Atlantic777 joined23:28
same_ol_1eez joined23:28
pouet joined23:28
cyphase left23:29
nyuszika7h joined23:29
e14 joined23:32
govg left23:32
e14 left23:33
e14 joined23:33
govg joined23:33
cyphase joined23:33
e14 left23:34
e14 joined23:34
atomi left23:34
atomi joined23:36
e14 left23:36
e14 joined23:36
mikecmpbll left23:36
clemf joined23:36
mikecmpbll joined23:37
SwiftMatt joined23:39
Impaloo left23:39
Impaloo joined23:39
GodGinrai left23:40
ISmithers joined23:40
mikecmpbll left23:40
UserOO7 joined23:41
Guest3214 left23:42
zacts joined23:44
amdi_ left23:45
qws-user-1228 left23:46
qws-user-1228 joined23:46
MattMaker left23:47
terminal_echo left23:48
qws-user-1228 left23:48
danmackay joined23:48
qws-user-1228 joined23:48
qws-user-1228 left23:48
MattMaker joined23:49
Ryanar joined23:49
qws-user-1228 joined23:51
tyreld left23:51
_sjs joined23:51
zacts left23:51
cyan__ left23:51
Gsham joined23:51
Gsham left23:51
justanotheruser left23:51
dhollinger left23:52
Ryanar_ joined23:53
shmuli left23:53
ahmedelgabri left23:54
Ryanar left23:54
Puffball left23:55
byteflame left23:55
_sjs left23:55
cyphase left23:56
Impaloo left23:56
UserOO7 left23:56
Impaloo joined23:56
byteflame joined23:56
dsdeiz left23:57
r4z left23:57
Ryanar_ left23:58
r4z joined23:58
dsdeiz joined23:58
netcarver left23:58
UserOO7 joined23:59
afuentes left23:59
r4z left23:59
tyreld joined23:59

Logs Search ←Prev date Next date→ Channels Documentation