[ 
https://issues.apache.org/jira/browse/NIFI-2826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526324#comment-15526324
 ] 

Joseph Percivall commented on NIFI-2826:
----------------------------------------

Hey [~josephxsxn], I just tried to "git am" your patch and it appears it 
doesn't have any author or commit information, just the diff of the file. In 
order to create a proper patch file (so that you'll get credit for the commit 
in the NiFi repo!) you can follow these steps:

1: checkout master ("git checkout master") and pull down the latest ("git pull")
2: create a new branch to do the work on ("git checkout -B NIFI-2826")
3: now check the status of the repo using "git status". You'll should now be on 
branch NIFI-2826, potentially with any changes you made. 
4: If the only uncommitted changes are the ones you want to make the patch for 
you can do "git commit -am 'NIFI-2826 Adding enqueue time to GetAzureEventHub 
processor" (see below if you want to clear out your working repo)
5: you should now have one commit different than the master branch, so you can 
do "git format-patch master". This will create a patch file called 
NIFI-2826_Adding_enqueue_time_to_GetAzureEventHub_processor.patch. It will have 
the diff of all the files as well as the author/commit information.
6: you can then attach that patch file here.

If you have items in your repo that are uncommitted that you don't care about 
you can do "git reset HEAD --hard" (this will remove any changes to any files 
that git is currently tracking). If there are files in the repo that git isn't 
tracking that you want to remove you can do "git clean -i -d" (this will 
interactively let you chose which files to remove). After you get to a clean 
repo, you can do "git apply patch.1" in order have the diff you attached here 
back and commit it.

This is a lot of information so please comment if anything was unclear. Also if 
you want to learn more about git, I'd suggest checking out this D3 animation: 
https://onlywei.github.io/explain-git-with-d3/


> GetEventHubProcessor Support Enqueue Time
> -----------------------------------------
>
>                 Key: NIFI-2826
>                 URL: https://issues.apache.org/jira/browse/NIFI-2826
>             Project: Apache NiFi
>          Issue Type: Improvement
>         Environment: centos6, jdk1.8, nifi 1.0.0
>            Reporter: Joseph Niemiec
>            Assignee: Joseph Niemiec
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: patch.1
>
>
> The current GetEventHubProcessor should support allowing an enqueue time like 
> eventhubs to read messages from the past. This would also support reading 
> messages missed during downtime. Today the behaviour is for the processor to 
> start at the enqueue of when it was started by the user missing any past 
> messages. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to